修复部分内置页面没有<head>标签的问题

This commit is contained in:
刘祥超
2024-01-20 10:14:15 +08:00
parent ac341da05b
commit 45ba4fe5f1

View File

@@ -48,10 +48,12 @@ func (this *PageAction) Perform(waf *WAF, group *RuleGroup, set *RuleSet, reques
if len(body) == 0 {
body = `<!DOCTYPE html>
<html lang="en">
<title>403 Forbidden</title>
<head>
<title>403 Forbidden</title>
<style>
address { line-height: 1.8; }
</style>
</head>
<body>
<h1>403 Forbidden By WAF</h1>
<address>Connection: ${remoteAddr} (Client) -&gt; ${serverAddr} (Server)</address>