Skip to content

Commit

Permalink
Add check for Magic Quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
bartv2 authored and Michael Gapczynski committed May 25, 2013
1 parent c7d8cd9 commit faad2d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ public static function checkServer() {
'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?',
Expand Down

0 comments on commit faad2d0

Please sign in to comment.