From e0fab761f34c7c10ba33f0ead4969fe981ce9aa4 Mon Sep 17 00:00:00 2001 From: Kevin Israel Date: Fri, 8 Jun 2018 13:46:10 -0400 Subject: [PATCH] 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 --- includes/http/CurlHttpRequest.php | 7 ------- 1 file changed, 7 deletions(-) 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; } } -- 2.20.1