mirror of
https://github.com/nextcloud/server.git
synced 2024-07-25 13:54:59 +02:00
Add check for Magic Quotes
This commit is contained in:
parent
686f836736
commit
7db5ec30c3
@ -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?',
|
||||
|
Loading…
Reference in New Issue
Block a user