From 8b40eca59ec98f19544e68342db7ee24d5983aa6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alf=20H=C3=B8gemark?= Date: Sat, 22 Feb 2014 11:59:55 +0100 Subject: [PATCH] cgi-bin: Remove font tags with no effect, and style tags The font tag is deprecated, so clean up html by removing font tags that have no effect. For font tags that have an effect, move the styling to the tag controlling the text output. The aim is to get one step further towards validating html. --- html/cgi-bin/dnsforward.cgi | 8 ++++---- html/cgi-bin/media.cgi | 4 ++-- html/cgi-bin/upnp.cgi | 11 ++++++----- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/html/cgi-bin/dnsforward.cgi b/html/cgi-bin/dnsforward.cgi index 5f051d21f0..b66fa467b2 100644 --- a/html/cgi-bin/dnsforward.cgi +++ b/html/cgi-bin/dnsforward.cgi @@ -207,20 +207,20 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'edit'}) { print < - $Lang::tr{'dnsforward zone'}: + $Lang::tr{'dnsforward zone'}: $Lang::tr{'enabled'} - $Lang::tr{'dnsforward forward_server'}: + $Lang::tr{'dnsforward forward_server'}: - +
$Lang::tr{'remark'}: *$Lang::tr{'remark'}: *
@@ -229,7 +229,7 @@ print < - * $Lang::tr{'this field may be blank'} + * $Lang::tr{'this field may be blank'} diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi index 7e8e32eeae..2aec3cce1d 100644 --- a/html/cgi-bin/media.cgi +++ b/html/cgi-bin/media.cgi @@ -206,9 +206,9 @@ sub diskbox { if ( $status[1]=~/standby/){ my $ftime = localtime((stat("/var/run/hddshutdown-$disk"))[9]); - print"Disk $disk status:".$status[1]." ($Lang::tr{'since'} $ftime)"; + print"Disk $disk status:".$status[1]." ($Lang::tr{'since'} $ftime)"; }else{ - print"Disk $disk status:".$status[1].""; + print"Disk $disk status:".$status[1].""; } } diff --git a/html/cgi-bin/upnp.cgi b/html/cgi-bin/upnp.cgi index ee341e15ae..07dfa2677c 100644 --- a/html/cgi-bin/upnp.cgi +++ b/html/cgi-bin/upnp.cgi @@ -133,7 +133,7 @@ print < END ; -if ( $message ne "" ) {print "$message";} +if ( $message ne "" ) {print "$message";} my $lines = 0; my $key = ''; @@ -199,9 +199,9 @@ print ""; ############################################################################################################################ sub isrunning - { +{ my $cmd = $_[0]; - my $status = "$Lang::tr{'stopped'}"; + my $status = "$Lang::tr{'stopped'}"; my $pid = ''; my $testcmd = ''; my $exename; @@ -219,9 +219,10 @@ sub isrunning {if (/^Name:\W+(.*)/) {$testcmd = $1; }} close FILE; if ($testcmd =~ /$exename/) - {$status = "$Lang::tr{'running'}";} + {$status = "$Lang::tr{'running'}";} } } return $status; - } +} + -- 2.39.5