From 75d56f24f23efbafb9cc5c8f779ba020e0bb3c51 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Fri, 1 Jun 2012 12:41:38 +0200 Subject: [PATCH] =?UTF-8?q?try=20to=20switch=20magic=20quotes=20off.=20it?= =?UTF-8?q?=C2=B4s=20evil=20and=20deprecated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/base.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/base.php b/lib/base.php index cb98a6c9e0..e6fcb9ec4d 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