From: Frank Karlitschek Date: Sun, 17 Mar 2013 21:17:24 +0000 (+0100) Subject: backport https://github.com/owncloud/core/pull/2411 X-Git-Tag: v5.0.1~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=532e5463db78fb92e9863d6e7bb93f95517e458b;p=nextcloud-server.git backport https://github.com/owncloud/core/pull/2411 --- diff --git a/lib/base.php b/lib/base.php index 59b861ffce1..0d33dbb163e 100644 --- a/lib/base.php +++ b/lib/base.php @@ -398,8 +398,8 @@ class OC { ini_set('arg_separator.output', '&'); // 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.