diff --git a/lib/base.php b/lib/base.php index 803d3e8bde..a1ad4f6dc0 100644 --- a/lib/base.php +++ b/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); }