Commit 4fcee80f authored by Dries's avatar Dries

- Patch #578470 by jbrauer, Gabor, Dries: XML-RPC error handling was incomplete.

parent 881322cb
......@@ -433,11 +433,13 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data =
if ($uri == FALSE) {
$result->error = 'unable to parse URL';
$result->code = -1001;
return $result;
}
if (!isset($uri['scheme'])) {
$result->error = 'missing schema';
$result->code = -1002;
return $result;
}
......@@ -455,6 +457,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data =
break;
default:
$result->error = 'invalid schema '. $uri['scheme'];
$result->code = -1003;
return $result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment