diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-23 05:33:32 -0700 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-23 05:33:32 -0700 |
commit | 3d2acb53897d18d9f4c05f956f2e9511d126ad33 (patch) | |
tree | cba763fb20b98148f68ef0f0bb63f48a48288412 | |
parent | 6326a3a9f723d062b22ad4d21f62c3086ff71952 (diff) | |
parent | 86c819bbe8bebcb87b39b545348fa1fb344a6279 (diff) | |
download | nextcloud-server-3d2acb53897d18d9f4c05f956f2e9511d126ad33.tar.gz nextcloud-server-3d2acb53897d18d9f4c05f956f2e9511d126ad33.zip |
Merge pull request #2446 from owncloud/fixing-safe-mode-check-master
more accurate safe_mode check - refs #2258
-rwxr-xr-x | lib/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index fad49ac5ab2..7e8fc9b6bb7 100755 --- a/lib/util.php +++ b/lib/util.php @@ -278,7 +278,10 @@ class OC_Util { 'hint'=>'Please ask your server administrator to install the module.'); $web_server_restart= false; } - if(ini_get('safe_mode')) { + if (((strtolower(@ini_get('safe_mode')) == 'on') + || (strtolower(@ini_get('safe_mode')) == 'yes') + || (strtolower(@ini_get('safe_mode')) == 'true') + || (ini_get("safe_mode") == 1 ))) { $errors[]=array('error'=>'PHP Safe Mode is enabled. ownCloud requires that it is disabled to work properly.', 'hint'=>'PHP Safe Mode is a deprecated and mostly useless setting that should be disabled. Please ask your server administrator to disable it in php.ini or in your webserver config.'); $web_server_restart= false; |