]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4498: URL-unescape the login-info after extraction from URI
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 6 May 2016 06:25:07 +0000 (18:25 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 6 May 2016 06:25:07 +0000 (18:25 +1200)
src/url.cc

index 255093bdcd4f4c0b96453aea3f3f1b81384c6eb8..ebdecbf6bde23420aaae6b15ecac9c1246f6eb1f 100644 (file)
@@ -290,6 +290,8 @@ urlParse(const HttpRequestMethod& method, char *url, HttpRequest *request)
             *t = 0;
             strncpy((char *) host, t + 1, sizeof(host)-1);
             host[sizeof(host)-1] = '\0';
+            // Bug 4498: URL-unescape the login info after extraction
+            rfc1738_unescape(login);
         }
 
         /* Is there any host information? (we should eventually parse it above) */