From 1831947157f257e4f5bb9fa948e129ea59d9703e Mon Sep 17 00:00:00 2001 From: Simon Erkelens Date: Thu, 23 Jul 2015 20:52:09 +0200 Subject: [PATCH] Declare the global mapping Fix for #4426 --- core/Constants.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/Constants.php b/core/Constants.php index ecadf404d..3e958a0ea 100644 --- a/core/Constants.php +++ b/core/Constants.php @@ -122,6 +122,7 @@ if(!defined('TRUSTED_PROXY')) { */ if(!isset($_SERVER['HTTP_HOST'])) { // HTTP_HOST, REQUEST_PORT, SCRIPT_NAME, and PHP_SELF + global $_FILE_TO_URL_MAPPING; if(isset($_FILE_TO_URL_MAPPING)) { $fullPath = $testPath = realpath($_SERVER['SCRIPT_FILENAME']); while($testPath && $testPath != '/' && !preg_match('/^[A-Z]:\\\\$/', $testPath)) {