summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-04-27 08:14:40 -0700
committerMorris Jobke <morris.jobke@gmail.com>2013-04-27 08:14:40 -0700
commit86455d6ac3042df3b7dd72030adf76af4ff26194 (patch)
treeaf09f0ce177e98bb7a3ee66015315d28e9a5e350 /lib
parent2bcb64e7813e5118676958a79910cdb604f9439b (diff)
parent7db5ec30c3837cefd0f4f94002cd8f03a8dd0612 (diff)
downloadnextcloud-server-86455d6ac3042df3b7dd72030adf76af4ff26194.tar.gz
nextcloud-server-86455d6ac3042df3b7dd72030adf76af4ff26194.zip
Merge pull request #3145 from owncloud/magic_quotes_gpc-check
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 f62c2a42d73..a67865d442b 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -287,6 +287,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?',