diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-19 14:36:52 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-19 14:36:52 +0100 |
commit | 86c819bbe8bebcb87b39b545348fa1fb344a6279 (patch) | |
tree | 67e6f831ec02c77dcb84b0062c30aeaba74679f5 | |
parent | e8100dc1a8f8b361d11cc0e82a18ade319092877 (diff) | |
download | nextcloud-server-86c819bbe8bebcb87b39b545348fa1fb344a6279.tar.gz nextcloud-server-86c819bbe8bebcb87b39b545348fa1fb344a6279.zip |
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; |