diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-16 19:42:17 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-16 19:42:17 +0200 |
commit | de7b46c66a77dd207929c222ec71d0b238da5f50 (patch) | |
tree | 6f5a88b69fec32a72f96633195b2e8025cac6481 | |
parent | e7c9d5fe54ec619793ae77829b93df4635279662 (diff) | |
download | nextcloud-server-de7b46c66a77dd207929c222ec71d0b238da5f50.tar.gz nextcloud-server-de7b46c66a77dd207929c222ec71d0b238da5f50.zip |
Use `get_magic_quotes_gpc()` to determine if magic_quotes is enabled
set_magic_quotes_runtime gives a PHP warning
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 803d3e8bde5..a1ad4f6dc0a 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); } |