summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-26 16:32:58 +0200
committerBart Visscher <bartv@thisnet.nl>2013-04-26 16:32:58 +0200
commit7db5ec30c3837cefd0f4f94002cd8f03a8dd0612 (patch)
treed6ea09dbfb2032ead2b77b8a18687bf77f40af56 /lib
parent686f83673699c778f8f213cc525addc860990222 (diff)
downloadnextcloud-server-7db5ec30c3837cefd0f4f94002cd8f03a8dd0612.tar.gz
nextcloud-server-7db5ec30c3837cefd0f4f94002cd8f03a8dd0612.zip
Add check for Magic Quotes
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 810593358a5..3766a16b312 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -286,6 +286,11 @@ class OC_Util {
'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;
}
+ if (get_magic_quotes_gpc() == 1 ) {
+ $errors[]=array('error'=>'Magic Quotes is enabled. ownCloud requires that it is disabled to work properly.',
+ 'hint'=>'Magic Quotes 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=true;
+ }
if($web_server_restart) {
$errors[]=array('error'=>'PHP modules have been installed, but they are still listed as missing?',