diff --git a/includes/common.inc b/includes/common.inc index c260f7a..e42062a 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1078,7 +1078,7 @@ function drupal_http_request($url, array $options = array()) { // If the location is a relative path, we need to add it to the existing // scheme and host. $location_uri = @parse_url($location); - if (empty($location_uri['scheme'])) { + if ($location_uri !== FALSE && empty($location_uri['scheme'])) { $location = $uri['scheme'] . '://' . $uri['host'] . $location; }