From: Kevin Israel Date: Fri, 8 Jun 2018 17:46:10 +0000 (-0400) Subject: CurlHttpRequest: remove open_basedir check X-Git-Tag: 1.34.0-rc.0~5147^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=e0fab761f34c7c10ba33f0ead4969fe981ce9aa4;p=lhc%2Fweb%2Fwiklou.git CurlHttpRequest: remove open_basedir check This only applied to PHP 5.5 and older, which we no longer support, and was apparently overlooked in I740f32ac. Change-Id: I1d56ac0ef7ac2cc14da16e1397e9614564c7ee23 --- diff --git a/includes/http/CurlHttpRequest.php b/includes/http/CurlHttpRequest.php index a8fbed0926..f457b2192c 100644 --- a/includes/http/CurlHttpRequest.php +++ b/includes/http/CurlHttpRequest.php @@ -149,13 +149,6 @@ class CurlHttpRequest extends MWHttpRequest { return false; } - if ( version_compare( PHP_VERSION, '5.6.0', '<' ) ) { - if ( strval( ini_get( 'open_basedir' ) ) !== '' ) { - $this->logger->debug( "Cannot follow redirects when open_basedir is set\n" ); - return false; - } - } - return true; } }