]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add check for Magic Quotes
authorBart Visscher <bartv@thisnet.nl>
Fri, 26 Apr 2013 14:32:58 +0000 (16:32 +0200)
committerMichael Gapczynski <mtgap@owncloud.com>
Sat, 25 May 2013 18:06:40 +0000 (14:06 -0400)
lib/util.php

index e0d2988e78d78580501b532d0e122bb63376908d..9eb3fc43d3b0d3ddf3d2c30f9c42d9056880ca59 100755 (executable)
@@ -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?',