diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-12-05 19:14:47 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-12-05 19:14:47 +0100 |
commit | ddcf2b84ec158d035c77693664dac8bd40e1b6e7 (patch) | |
tree | de2c8c71722af0e409c71440e669a74146070529 /lib/private/httphelper.php | |
parent | 5f66cb32502c88d7182c3dc5994ef733762fa665 (diff) | |
download | nextcloud-server-ddcf2b84ec158d035c77693664dac8bd40e1b6e7.tar.gz nextcloud-server-ddcf2b84ec158d035c77693664dac8bd40e1b6e7.zip |
Remove checks for safe mode and magic quotes
Both are removed from 5.4.0
Safe Mode: http://php.net/manual/en/features.safe-mode.php
> This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
Magic Quotes: http://php.net/manual/en/security.magicquotes.php
> This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
Diffstat (limited to 'lib/private/httphelper.php')
-rw-r--r-- | lib/private/httphelper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/httphelper.php b/lib/private/httphelper.php index 8b7aebb3d4d..dfc1bcf47cd 100644 --- a/lib/private/httphelper.php +++ b/lib/private/httphelper.php @@ -72,7 +72,7 @@ class HTTPHelper { curl_setopt($curl, CURLOPT_PROXYUSERPWD, $proxyUserPwd); } - if (ini_get('open_basedir') === '' && (ini_get('safe_mode') === false) || strtolower(ini_get('safe_mode')) === 'off') { + if (ini_get('open_basedir') === '') { curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_MAXREDIRS, $max_redirects); $data = curl_exec($curl); |