mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-03 06:55:03 +03:00
Fix ( для браузеров на движке webkit )
This commit is contained in:
parent
2f81c6576b
commit
be57c76a71
|
@ -39,11 +39,11 @@ class LsSecurity extends Module {
|
||||||
public function ValidateReferal() {
|
public function ValidateReferal() {
|
||||||
if (isset($_SERVER['HTTP_REFERER'])) {
|
if (isset($_SERVER['HTTP_REFERER'])) {
|
||||||
$aUrl=parse_url($_SERVER['HTTP_REFERER']);
|
$aUrl=parse_url($_SERVER['HTTP_REFERER']);
|
||||||
if ($aUrl['host']==$_SERVER['HTTP_HOST']) {
|
if (strcasecmp($aUrl['host'],$_SERVER['HTTP_HOST'])) {
|
||||||
return true;
|
return true;
|
||||||
} elseif (preg_match("/\.".quotemeta($_SERVER['HTTP_HOST'])."$/i",$aUrl['host'])) {
|
} elseif (preg_match("/\.".quotemeta($_SERVER['HTTP_HOST'])."$/i",$aUrl['host'])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue