From: Frank Karlitschek Date: Fri, 1 Jun 2012 10:41:38 +0000 (+0200) Subject: try to switch magic quotes off. X-Git-Tag: v4.5.0beta1~74^2~425^2~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=75d56f24f23efbafb9cc5c8f779ba020e0bb3c51;p=nextcloud-server.git try to switch magic quotes off. it´s evil and deprecated --- diff --git a/lib/base.php b/lib/base.php index cb98a6c9e0b..e6fcb9ec4de 100644 --- a/lib/base.php +++ b/lib/base.php @@ -329,6 +329,11 @@ class OC{ date_default_timezone_set('UTC'); ini_set('arg_separator.output','&'); + // try to switch magic quotes off. + if(function_exists('set_magic_quotes_runtime')) { + @set_magic_quotes_runtime(false); + } + //try to configure php to enable big file uploads. //this doesn´t work always depending on the webserver and php configuration. //Let´s try to overwrite some defaults anyways