From 0468f53f7311291ce78125d684184c1c7ae0756f Mon Sep 17 00:00:00 2001
From: Frank Karlitschek <frank@owncloud.org>
Date: Fri, 1 Jun 2012 12:42:50 +0200
Subject: [PATCH] switch magic quotes off. they are evil and deprecated

---
 lib/base.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/base.php b/lib/base.php
index 96215410ad..8647705de8 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
-- 
GitLab