Skip to content

Commit

Permalink
Fix for PHP 5 (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDombo committed Feb 20, 2018
1 parent c22981f commit c4b2bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/GlobalFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static function verifySameOriginHeader(){
$url = parse_url($_SERVER["HTTP_REFERER"]);
}

$url = $url["host"] . $url["port"] ?? "";
$url = $url["host"] . isset($url["port"]) ? $url["port"]: "";
return mb_strpos(mb_strtolower($url), LOCAL_URL) >= 0;
}

Expand Down

0 comments on commit c4b2bd1

Please sign in to comment.