From faad2d0d699faf46790f3b6dee8fa5a57a84f645 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 26 Apr 2013 16:32:58 +0200 Subject: [PATCH] Add check for Magic Quotes --- lib/util.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/util.php b/lib/util.php index e0d2988e78d..9eb3fc43d3b 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?', -- 2.39.5