diff --git a/library/Requests.php b/library/Requests.php index 854491b81..afeff666b 100755 --- a/library/Requests.php +++ b/library/Requests.php @@ -595,7 +595,7 @@ protected static function parse_response($headers, $url, $req_headers, $req_data } $options['redirected']++; $location = $return->headers['location']; - if (strpos ($location, '/') === 0) { + if (strpos ($location, 'http://') !== 0 && strpos ($location, 'https://') !== 0) { // relative redirect, for compatibility make it absolute $location = Requests_IRI::absolutize($url, $location); $location = $location->uri;