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

set_magic_quotes_runtime gives a PHP warning
This commit is contained in:
Lukas Reschke 2012-10-16 19:42:17 +02:00
parent c3646f5554
commit 3f3b92a149
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,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);
}