mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
fix
This commit is contained in:
parent
be57c76a71
commit
5a72fbed1a
|
@ -39,7 +39,7 @@ class LsSecurity extends Module {
|
|||
public function ValidateReferal() {
|
||||
if (isset($_SERVER['HTTP_REFERER'])) {
|
||||
$aUrl=parse_url($_SERVER['HTTP_REFERER']);
|
||||
if (strcasecmp($aUrl['host'],$_SERVER['HTTP_HOST'])) {
|
||||
if (strcasecmp($aUrl['host'],$_SERVER['HTTP_HOST'])==0) {
|
||||
return true;
|
||||
} elseif (preg_match("/\.".quotemeta($_SERVER['HTTP_HOST'])."$/i",$aUrl['host'])) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue