From 4cf73abccd3c00d338945d2c080291d86fce6b41 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 1 Mar 2017 11:35:01 +0100 Subject: [PATCH] Rely on noreferrer in Firefox too --- adminer/include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 97027f65..eb3d22c5 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -1144,7 +1144,7 @@ function select_value($val, $link, $field, $text_length) { $link = "mailto:$val"; } if ($protocol = is_url($val)) { - $link = (($protocol == "http" && $HTTPS) || preg_match('~WebKit~i', $_SERVER["HTTP_USER_AGENT"]) // WebKit supports noreferrer since 2009 + $link = (($protocol == "http" && $HTTPS) || preg_match('~WebKit|Firefox~i', $_SERVER["HTTP_USER_AGENT"]) // WebKit supports noreferrer since 2009, Firefox since version 38 ? $val // HTTP links from HTTPS pages don't receive Referer automatically : "https://www.adminer.org/redirect/?url=" . urlencode($val) // intermediate page to hide Referer );