updated to 4.01 the HTML DOCTYPE declarations

This commit is contained in:
Jordi Sanfeliu 2017-06-26 10:39:49 +02:00
parent ec604eacd5
commit dbea9d4b2b
3 changed files with 5 additions and 5 deletions

View File

@ -191,7 +191,7 @@ sub handle_request {
$denied = ip_validity($ENV{REMOTE_ADDR}, $hosts_deny) if !$allowed; $denied = ip_validity($ENV{REMOTE_ADDR}, $hosts_deny) if !$allowed;
if(!$allowed && $denied) { if(!$allowed && $denied) {
http_header("403", "html"); http_header("403", "html");
print "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n"; print("<!DOCTYPE html '-//W3C//DTD HTML 4.01 Final//EN'>\r\n");
print "<html><head>\r\n"; print "<html><head>\r\n";
print "<title>403 Forbidden</title>\r\n"; print "<title>403 Forbidden</title>\r\n";
print "</head><body>\r\n"; print "</head><body>\r\n";
@ -244,7 +244,7 @@ sub handle_request {
if(scalar(@data)) { if(scalar(@data)) {
if($auth eq "y") { if($auth eq "y") {
if(http_header("401", $mimetype)) { if(http_header("401", $mimetype)) {
print "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n"; print("<!DOCTYPE html '-//W3C//DTD HTML 4.01 Final//EN'>\r\n");
print "<html><head>\r\n"; print "<html><head>\r\n";
print "<title>401 Authorization Required</title>\r\n"; print "<title>401 Authorization Required</title>\r\n";
print "</head><body>\r\n"; print "</head><body>\r\n";
@ -267,7 +267,7 @@ sub handle_request {
logger($url, "OK"); logger($url, "OK");
} else { } else {
http_header("404", "html"); http_header("404", "html");
print "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n"; print("<!DOCTYPE html '-//W3C//DTD HTML 4.01 Final//EN'>\r\n");
print "<html><head>\r\n"; print "<html><head>\r\n";
print "<title>404 Not Found</title>\r\n"; print "<title>404 Not Found</title>\r\n";
print "</head><body>\r\n"; print "</head><body>\r\n";

View File

@ -180,7 +180,7 @@ EOF
die "unable to create '${config{base_dir}}index.html': $!"; die "unable to create '${config{base_dir}}index.html': $!";
} }
print(OUT <<EOF); print(OUT <<EOF);
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!DOCTYPE html "-//W3C//DTD HTML 4.01 Final//EN">
<html> <html>
<head> <head>
<title>$config{title}</title> <title>$config{title}</title>

View File

@ -420,7 +420,7 @@ if(!$silent) {
EOF EOF
} }
print("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 3.2 Final//EN'>\n"); print("<!DOCTYPE html '-//W3C//DTD HTML 4.01 Final//EN'>\n");
print("<html>\n"); print("<html>\n");
print(" <head>\n"); print(" <head>\n");
print(" <title>$config{title}</title>\n"); print(" <title>$config{title}</title>\n");