]> 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>
Mon, 2 May 2016 15:18:33 +0000 (03:18 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 May 2016 15:18:33 +0000 (03:18 +1200)
src/url.cc

index b65a607e9d3629b20c7fe5471e33daf21e2590ce..55f20d88f84ab1881237404176b8e2156680050b 100644 (file)
@@ -287,6 +287,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) */