summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-06-01 12:42:50 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-06-01 12:42:50 +0200
commit0468f53f7311291ce78125d684184c1c7ae0756f (patch)
treeb91f12b3e1488d70a61057bda20c3ed6581dca22
parent1b34bda76b659a3105c58ba4d344cfbaceb24e58 (diff)
downloadnextcloud-server-0468f53f7311291ce78125d684184c1c7ae0756f.tar.gz
nextcloud-server-0468f53f7311291ce78125d684184c1c7ae0756f.zip
switch magic quotes off.
they are evil and deprecated
-rw-r--r--lib/base.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 96215410ad7..8647705de8a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -324,6 +324,11 @@ class OC{
date_default_timezone_set('UTC');
ini_set('arg_separator.output','&amp;');
+ // 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