From ecc18ab93044a040a5dfd0b7e8da066fbd0aa9db Mon Sep 17 00:00:00 2001 From: jiff <jiff@1636348.no-reply.drupal.org> Date: Fri, 10 Apr 2015 17:30:48 -0700 Subject: [PATCH] Issue #2468401 by jiff: HTTP fetcher does not correctly decode urlencoded basic auth params --- libraries/http_request.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/http_request.inc b/libraries/http_request.inc index 22f4aa07..84c4978e 100644 --- a/libraries/http_request.inc +++ b/libraries/http_request.inc @@ -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']); } } -- GitLab