summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-02-24 11:23:27 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-02-24 11:23:27 -0800
commit906f8fa6f6d7b9ecfdd347bec1939b48b5cb34cf (patch)
treecf0d29f35355e7d541165c9c72f57f46bec89f8b
parent7019972320868b95b709891fc21fcdc2a5b1cc72 (diff)
parentc5e0dda8874244ac3c9acdf92bfd5e97405438c0 (diff)
downloadnextcloud-server-906f8fa6f6d7b9ecfdd347bec1939b48b5cb34cf.tar.gz
nextcloud-server-906f8fa6f6d7b9ecfdd347bec1939b48b5cb34cf.zip
Merge pull request #1881 from owncloud/safemode_check
add a safe_mode check
-rwxr-xr-xlib/util.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index ab47e404c97..87facda1804 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -269,6 +269,11 @@ class OC_Util {
'hint'=>'Please ask your server administrator to install the module.');
$web_server_restart= false;
}
+ if(ini_get('safe_mode')) {
+ $errors[]=array('error'=>'PHP Safe Mode is enabled. ownCloud requires that it is disabled to work properly.<br/>',
+ '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;
+ }
$handler = ini_get("session.save_handler");
if($handler == "files") {