Skip to content
Snippets Groups Projects
Commit ecc18ab9 authored by jiff's avatar jiff Committed by Chris Leppanen
Browse files

Issue #2468401 by jiff: HTTP fetcher does not correctly decode urlencoded basic auth params

parent e2973d13
No related branches found
No related tags found
No related merge requests found
......@@ -100,8 +100,8 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva
// Handle password protected feeds.
$url_parts = parse_url($url);
if (!empty($url_parts['user'])) {
$password = $url_parts['pass'];
$username = $url_parts['user'];
$password = urldecode($url_parts['pass']);
$username = urldecode($url_parts['user']);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment