From 979307b9aabbcdc3240be58c50b5ee39575cc9e9 Mon Sep 17 00:00:00 2001 From: Dominic Taylor Date: Mon, 19 Aug 2019 23:45:11 +0100 Subject: [PATCH] add rel=nopener to all links that contain target=blank 02 https://developers.google.com/web/tools/lighthouse/audits/noopener --- html/cgi-bin/gpl.cgi | 2 +- html/cgi-bin/logs.cgi/ids.dat | 4 ++-- html/cgi-bin/logs.cgi/urlfilter.dat | 2 +- html/cgi-bin/mpfire.cgi | 2 +- html/cgi-bin/proxy.cgi | 2 +- html/cgi-bin/tor.cgi | 4 ++-- html/cgi-bin/webaccess.cgi | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/html/cgi-bin/gpl.cgi b/html/cgi-bin/gpl.cgi index 94187ce7a3..2f6c2eca7f 100644 --- a/html/cgi-bin/gpl.cgi +++ b/html/cgi-bin/gpl.cgi @@ -74,7 +74,7 @@ print <

- $Lang::tr{'gpl unofficial translation of the general public license v3'} + $Lang::tr{'gpl unofficial translation of the general public license v3'} END diff --git a/html/cgi-bin/logs.cgi/ids.dat b/html/cgi-bin/logs.cgi/ids.dat index 8918bc6da6..6a6c7718c9 100644 --- a/html/cgi-bin/logs.cgi/ids.dat +++ b/html/cgi-bin/logs.cgi/ids.dat @@ -348,11 +348,11 @@ END } elsif ($sid < 1000000) { # Link to sourcefire if the the rule sid is less than 1000000. print "$sid\n"; + print "target='_blank' rel='noopener'>$sid\n"; } elsif ($sid >= 2000000 and $sid < 3000000) { # Link to emergingthreats if the rule sid is between 2000000 and 3000000. print "$sid\n"; + print "target='_blank' rel='noopener'>$sid\n"; } else { # No external link for user defined rules print $sid; diff --git a/html/cgi-bin/logs.cgi/urlfilter.dat b/html/cgi-bin/logs.cgi/urlfilter.dat index 221ed74ac6..52d7ba2861 100644 --- a/html/cgi-bin/logs.cgi/urlfilter.dat +++ b/html/cgi-bin/logs.cgi/urlfilter.dat @@ -365,7 +365,7 @@ if ($lines) if (length($dsturl) > 69) { $site .= "..."; } } #print "$site\n"; - print "$site\n"; + print "$site\n"; } print "\n"; } diff --git a/html/cgi-bin/mpfire.cgi b/html/cgi-bin/mpfire.cgi index 6cec8ff338..14fadae72b 100644 --- a/html/cgi-bin/mpfire.cgi +++ b/html/cgi-bin/mpfire.cgi @@ -605,7 +605,7 @@ foreach (@webradio){ } chomp $stream[1];chomp $stream[2]; print <$stream[1] +$stream[1]
diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index 2e3efbbb70..f1a9b6d556 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -1021,7 +1021,7 @@ print <$Lang::tr{'advproxy cache management'} - $Lang::tr{'proxy cachemgr'}: + $Lang::tr{'proxy cachemgr'}: $Lang::tr{'advproxy admin mail'}: diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index d31eb10862..7e50a40991 100644 --- a/html/cgi-bin/tor.cgi +++ b/html/cgi-bin/tor.cgi @@ -516,7 +516,7 @@ END $Lang::tr{'tor relay fingerprint'}: - $fingerprint + $fingerprint END @@ -609,7 +609,7 @@ END print < - + $node->{'name'} diff --git a/html/cgi-bin/webaccess.cgi b/html/cgi-bin/webaccess.cgi index e687603f26..ff601eb9ef 100644 --- a/html/cgi-bin/webaccess.cgi +++ b/html/cgi-bin/webaccess.cgi @@ -232,8 +232,8 @@ print < - Advanced Proxy running on - IPFire + Advanced Proxy running on + IPFire