Use `get_magic_quotes_gpc()` to determine if magic_quotes is enabled

set_magic_quotes_runtime gives a PHP warning
remotes/origin/stable5
Lukas Reschke 12 years ago
parent e7c9d5fe54
commit de7b46c66a
  1. 2
      lib/base.php

@ -307,7 +307,7 @@ class OC{
ini_set('arg_separator.output', '&');
// try to switch magic quotes off.
if(function_exists('set_magic_quotes_runtime')) {
if(get_magic_quotes_gpc()) {
@set_magic_quotes_runtime(false);
}

Loading…
Cancel
Save