CurlHttpRequest: remove open_basedir check
authorKevin Israel <pleasestand@live.com>
Fri, 8 Jun 2018 17:46:10 +0000 (13:46 -0400)
committerKevin Israel <pleasestand@live.com>
Fri, 8 Jun 2018 17:46:10 +0000 (13:46 -0400)
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

index a8fbed0..f457b21 100644 (file)
@@ -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;
        }
 }