diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-06-01 12:41:38 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-06-01 12:41:38 +0200 |
commit | 75d56f24f23efbafb9cc5c8f779ba020e0bb3c51 (patch) | |
tree | f0cd2959dce01d38f3a94ae94715e4c3e7677f6e /lib/base.php | |
parent | 93295994dc951e02405930dfbe8eca18bb4d9b07 (diff) | |
download | nextcloud-server-75d56f24f23efbafb9cc5c8f779ba020e0bb3c51.tar.gz nextcloud-server-75d56f24f23efbafb9cc5c8f779ba020e0bb3c51.zip |
try to switch magic quotes off.
it´s evil and deprecated
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 |