From 631b67b7cd4c5fa00417cbe9e843892cae6f0ff6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alf=20H=C3=B8gemark?= Date: Sat, 15 Feb 2014 16:54:38 +0100 Subject: [PATCH] cgi-bin: HTML cleanup, add quotes for attribute values --- html/cgi-bin/ids.cgi | 10 +++++----- html/cgi-bin/ovpnmain.cgi | 6 +++--- html/cgi-bin/p2p-block.cgi | 4 ++-- html/cgi-bin/proxy.cgi | 2 +- html/cgi-bin/tripwire.cgi | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 5884e2417..bd3a9dc24 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -594,7 +594,7 @@ END if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable_green" || -e "${General::swroot}/snort/enable_blue" || -e "${General::swroot}/snort/enable_orange" ) { &Header::openbox('100%', 'LEFT', $Lang::tr{'intrusion detection system rules'}); # Output display table for rule files - print "
"; + print "
"; print ""; @@ -615,7 +615,7 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable # Check if reached half-way through rule file rules to start new column if ($ruledisplaycnt > $rulecnt) { - print "
"; + print "
"; $ruledisplaycnt = 0; } @@ -666,8 +666,8 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable } # Output rule file name and checkbox - print ""; - print ""; + print "
$rulefile
"; + print "
$rulefile
"; # Check for empty 'Description' if ($snortrules{$rulefile}{'Description'} eq '') { @@ -680,7 +680,7 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable # Check for display flag if ($displayrulefilerules) { # Rule file definition rule display - print "
"; + print "
"; # Local vars my $ruledefdisplaycnt = 0; diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index ff5b01982..3967ff83a 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -2282,7 +2282,7 @@ ADV_ERROR: &Header::openbox('100%', 'LEFT', $Lang::tr{'advanced server'}); print < -
+
@@ -2485,7 +2485,7 @@ if ($cgiparams{'ACTION'} eq "edit"){ &Header::openbox('100%', 'LEFT', $Lang::tr{'ccd modify'}); print < +
$Lang::tr{'dhcp-options'}
@@ -4581,7 +4581,7 @@ END } &Header::openbox('100%', 'LEFT', $Lang::tr{'global settings'}); print < +
$Lang::tr{'ccd name'}: $Lang::tr{'ccd subnet'}:
diff --git a/html/cgi-bin/p2p-block.cgi b/html/cgi-bin/p2p-block.cgi index eb5b8abd0..04f133142 100644 --- a/html/cgi-bin/p2p-block.cgi +++ b/html/cgi-bin/p2p-block.cgi @@ -88,10 +88,10 @@ close FILE; print < - - diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index 6f78deb09..c8f0dca77 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -1206,7 +1206,7 @@ print <$Lang::tr{'advproxy destination ports'} - + diff --git a/html/cgi-bin/tripwire.cgi b/html/cgi-bin/tripwire.cgi index 696a52e1e..170bd66ca 100644 --- a/html/cgi-bin/tripwire.cgi +++ b/html/cgi-bin/tripwire.cgi @@ -487,7 +487,7 @@ print < - +
   
+ $Lang::tr{'protocol'} + $Lang::tr{'status'}
$Lang::tr{'advproxy standard ports'}:
$Log

$tripwiresettings{'LOG'}
$tripwiresettings{'LOG'}
END ; -- 2.39.2