From: Joel Rosdahl Date: Wed, 6 Oct 2021 19:37:31 +0000 (+0200) Subject: fix: Support special characters in URL user info X-Git-Tag: v4.5~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5243c21f4c7a8e048ac214bb5a1d78ddd769fbd1;p=thirdparty%2Fccache.git fix: Support special characters in URL user info Bump CxxUrl to v0.3 to fix a URL parsing bug, as suggested by Russell McClellan. Fixes #941. --- diff --git a/LICENSE.adoc b/LICENSE.adoc index ceababfb4..bd6983c68 100644 --- a/LICENSE.adoc +++ b/LICENSE.adoc @@ -681,7 +681,7 @@ DEALINGS IN THE SOFTWARE. === src/third_party/url.* -CxxUrl - A simple C++ URL class. Copied from CxxUrl v0.2 downloaded from +CxxUrl - A simple C++ URL class. Copied from CxxUrl v0.3 downloaded from . It has the following license text: ---- diff --git a/src/third_party/url.cpp b/src/third_party/url.cpp index 373b6a14c..688ddf0ce 100644 --- a/src/third_party/url.cpp +++ b/src/third_party/url.cpp @@ -727,7 +727,7 @@ void Url::parse_url() const { p=find_char(b, ea, '@'); // get user info if any if (p!=ea) { - if (!is_chars(b, p, 0x05)) + if (!is_chars(b, p, 0x25)) throw Url::parse_error("User info in '"+std::string(s,e-s)+"' is invalid"); user_b=b; user_e=p;