Commit 2bc45e3d authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent infinite loop when installing on Windows/IIS. Thanks to Inaki Arenaza.

(cherry picked from commit 3f9bdf5c)
parent ab351176
......@@ -248,10 +248,11 @@ if (get_config('siteclosed')) {
}
// check to see if we're installed...
$scriptfilename = str_replace('\\', '/', $_SERVER['SCRIPT_FILENAME']);
if (!get_config('installed')
&& false === strpos($_SERVER['SCRIPT_FILENAME'], 'admin/index.php')
&& false === strpos($_SERVER['SCRIPT_FILENAME'], 'admin/upgrade.php')
&& false === strpos($_SERVER['SCRIPT_FILENAME'], 'admin/upgrade.json.php')) {
&& false === strpos($scriptfilename, 'admin/index.php')
&& false === strpos($scriptfilename, 'admin/upgrade.php')
&& false === strpos($scriptfilename, 'admin/upgrade.json.php')) {
redirect('/admin/');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment