Rely on noreferrer in Firefox too
This commit is contained in:
parent
2d6451b99a
commit
4cf73abccd
|
@ -1144,7 +1144,7 @@ function select_value($val, $link, $field, $text_length) {
|
||||||
$link = "mailto:$val";
|
$link = "mailto:$val";
|
||||||
}
|
}
|
||||||
if ($protocol = is_url($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
|
? $val // HTTP links from HTTPS pages don't receive Referer automatically
|
||||||
: "https://www.adminer.org/redirect/?url=" . urlencode($val) // intermediate page to hide Referer
|
: "https://www.adminer.org/redirect/?url=" . urlencode($val) // intermediate page to hide Referer
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue