]> source.dussan.org Git - nextcloud-server.git/commitdiff
try to switch magic quotes off.
authorFrank Karlitschek <frank@owncloud.org>
Fri, 1 Jun 2012 10:41:38 +0000 (12:41 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Fri, 1 Jun 2012 10:41:38 +0000 (12:41 +0200)
it´s evil and deprecated

lib/base.php

index cb98a6c9e0b9d836028b1dbcb317234671c348e4..e6fcb9ec4de07ad7b9cf0ecc9ebae637b830df29 100644 (file)
@@ -329,6 +329,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