Commit 2911d50b authored by Nigel's avatar Nigel
Browse files

Don't check for magic_quotes when we're running by cron. Prevents gazillions of errors in the logs.

parent 30f6e9de
......@@ -88,7 +88,7 @@ function ensure_sanity() {
// magic_quotes_gpc workaround
if (ini_get_bool('magic_quotes_gpc')) {
if (!defined('CRON') && ini_get_bool('magic_quotes_gpc')) {
log_environ(get_string('magicquotesgpc', 'error'));
function stripslashes_deep($value) {
$value = is_array($value) ?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment