Skip to content
Snippets Groups Projects
Commit 86455d6a authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #3145 from owncloud/magic_quotes_gpc-check

Add check for Magic Quotes
parents 2bcb64e7 7db5ec30
No related branches found
No related tags found
No related merge requests found
......@@ -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?',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment