sanity: it's probably a good idea to check whether we're running under httpd before enforcing SELF_URL_PATH checks
This commit is contained in:
parent
1f91695895
commit
2953687b72
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@
|
||||||
"Please set SELF_URL_PATH to the correct value for your server (possible value: <b>$ref_self_url_path</b>)");
|
"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,
|
array_push($errors,
|
||||||
"Please set SELF_URL_PATH to the correct value detected for your server: <b>$ref_self_url_path</b>");
|
"Please set SELF_URL_PATH to the correct value detected for your server: <b>$ref_self_url_path</b>");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue