]> source.dussan.org Git - nextcloud-server.git/commitdiff
backport https://github.com/owncloud/core/pull/2411
authorFrank Karlitschek <frank@owncloud.org>
Sun, 17 Mar 2013 21:17:24 +0000 (22:17 +0100)
committerFrank Karlitschek <frank@owncloud.org>
Sun, 17 Mar 2013 21:17:24 +0000 (22:17 +0100)
lib/base.php

index 59b861ffce110e727f66590e0b81a00778036c71..0d33dbb163e5cdef5e14a557015fe0cd7662e2af 100644 (file)
@@ -398,8 +398,8 @@ class OC {
                ini_set('arg_separator.output', '&amp;');
 
                // try to switch magic quotes off.
-               if (get_magic_quotes_gpc()) {
-                       @set_magic_quotes_runtime(false);
+               if (get_magic_quotes_gpc()==1) {
+                       ini_set('magic_quotes_runtime', 0);
                }
 
                //try to configure php to enable big file uploads.