From 63a5fdaa21ed2f755b164376aeb661425e8a1ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 12 Jul 2016 10:57:23 +0200 Subject: [PATCH] Add rel="noopener noreferrer" to all target="_blank" links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- changelog.php | 1 + index.php | 9 ++++++--- libraries/display_git_revision.lib.php | 4 ++-- libraries/engines/pbxt.lib.php | 4 ++-- .../abstract/InlineTransformationsPlugin.class.php | 2 +- .../TextImageLinkTransformationsPlugin.class.php | 2 +- libraries/sanitizing.lib.php | 3 +++ themes.php | 2 +- 8 files changed, 17 insertions(+), 10 deletions(-) diff --git a/changelog.php b/changelog.php index 2c407c1646..61b2b5efdf 100644 --- a/changelog.php +++ b/changelog.php @@ -146,6 +146,7 @@ echo ''; var links = document.getElementsByTagName("a"); for(var i = 0; i < links.length; i++) { links[i].target = "_blank"; + links[i].rel = "noopener noreferrer"; } diff --git a/index.php b/index.php index 6831bdc532..1637cb9379 100644 --- a/index.php +++ b/index.php @@ -116,9 +116,9 @@ if ($server > 0 || count($cfg['Servers']) > 1 /** * Displays the MySQL servers choice form */ - if ($cfg['ServerDefault'] == 0 + if ($cfg['ServerDefault'] == 0 || (! $cfg['NavigationDisplayServers'] - && (count($cfg['Servers']) > 1 + && (count($cfg['Servers']) > 1 || ($server == 0 && count($cfg['Servers']) == 1) ) ) @@ -155,7 +155,7 @@ if ($server > 0 || count($cfg['Servers']) > 1 echo '
' . "\n" . PMA_generate_common_hidden_inputs(null, null, 4, 'collation_connection') . '