Skip to content

Commit

Permalink
BF Server
Browse files Browse the repository at this point in the history
  • Loading branch information
uprel committed Jul 17, 2018
1 parent 16ad120 commit 8817f8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/class.Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,12 @@ public function checkReferer($project) {
return false;
}
$ref = $_SERVER["HTTP_REFERER"];
$server = $_SERVER["REQUEST_SCHEME"] . "://" . $_SERVER["SERVER_NAME"] . $_SERVER["CONTEXT_PREFIX"] . $project;
//$server = $_SERVER["REQUEST_SCHEME"] . "://" . $_SERVER["SERVER_NAME"] . $_SERVER["CONTEXT_PREFIX"] . $project; //windows problem
$server = $_SERVER["REQUEST_SCHEME"] . "://" . $_SERVER["SERVER_NAME"] . GISAPPURL . $project;

$match = strpos($ref,$server);
if ($match === FALSE) {
error_log("EQWC Referer error : ".$ref . ': '.$server);
return FALSE;
}

Expand Down

0 comments on commit 8817f8a

Please sign in to comment.