From dbea9d4b2bc49244437a9b3623389b69b8a865e2 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 26 Jun 2017 10:39:49 +0200 Subject: [PATCH] updated to 4.01 the HTML DOCTYPE declarations --- lib/HTTPServer.pm | 6 +++--- monitorix | 2 +- monitorix.cgi | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/HTTPServer.pm b/lib/HTTPServer.pm index d9a00d5..8a2186d 100644 --- a/lib/HTTPServer.pm +++ b/lib/HTTPServer.pm @@ -191,7 +191,7 @@ sub handle_request { $denied = ip_validity($ENV{REMOTE_ADDR}, $hosts_deny) if !$allowed; if(!$allowed && $denied) { http_header("403", "html"); - print "\r\n"; + print("\r\n"); print "\r\n"; print "403 Forbidden\r\n"; print "\r\n"; @@ -244,7 +244,7 @@ sub handle_request { if(scalar(@data)) { if($auth eq "y") { if(http_header("401", $mimetype)) { - print "\r\n"; + print("\r\n"); print "\r\n"; print "401 Authorization Required\r\n"; print "\r\n"; @@ -267,7 +267,7 @@ sub handle_request { logger($url, "OK"); } else { http_header("404", "html"); - print "\r\n"; + print("\r\n"); print "\r\n"; print "404 Not Found\r\n"; print "\r\n"; diff --git a/monitorix b/monitorix index 58d4776..9be5cca 100755 --- a/monitorix +++ b/monitorix @@ -180,7 +180,7 @@ EOF die "unable to create '${config{base_dir}}index.html': $!"; } print(OUT < + $config{title} diff --git a/monitorix.cgi b/monitorix.cgi index 3616dec..8b93909 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -420,7 +420,7 @@ if(!$silent) { EOF } - print("\n"); + print("\n"); print("\n"); print(" \n"); print(" $config{title}\n");