summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-07-05 22:46:05 +0300
committerAndrew Dolgov <[email protected]>2017-07-05 22:46:05 +0300
commit2953687b7242f77d9bc5cbea7cf21d2fb9f2de1a (patch)
tree6e7ba7a513d8ff2f6103d6ed167cfde9b3e2079b /include/sanity_check.php
parent1f9169589550600e2e72cbbe30a117bcce8bc747 (diff)
sanity: it's probably a good idea to check whether we're running under httpd before enforcing SELF_URL_PATH checks
Diffstat (limited to 'include/sanity_check.php')
-rwxr-xr-xinclude/sanity_check.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index b8a5acb1c..f9f6575c8 100755
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -105,7 +105,7 @@
"Please set SELF_URL_PATH to the correct value for your server (possible value: <b>$ref_self_url_path</b>)");
}
- if (SELF_URL_PATH != $ref_self_url_path && (!defined('_SKIP_SELF_URL_PATH_CHECKS') || !_SKIP_SELF_URL_PATH_CHECKS)) {
+ if (isset($_SERVER["HTTP_HOST"]) && SELF_URL_PATH != $ref_self_url_path && (!defined('_SKIP_SELF_URL_PATH_CHECKS') || !_SKIP_SELF_URL_PATH_CHECKS)) {
array_push($errors,
"Please set SELF_URL_PATH to the correct value detected for your server: <b>$ref_self_url_path</b>");
}