]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Support special characters in URL user info
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 6 Oct 2021 19:37:31 +0000 (21:37 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 6 Oct 2021 19:52:49 +0000 (21:52 +0200)
Bump CxxUrl to v0.3 to fix a URL parsing bug, as suggested by Russell
McClellan.

Fixes #941.

LICENSE.adoc
src/third_party/url.cpp

index ceababfb4671f0eb8624670fd07a24dc7acf90bc..bd6983c68fb56db29de58c5acd18220d87da8b8f 100644 (file)
@@ -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
 <https://github.com/chmike/CxxUrl>. It has the following license text:
 
 ----
index 373b6a14cb2e902d4cdab6ab23dc994459753001..688ddf0ceb196452a98c1d4ded188e6f976bbb3d 100644 (file)
@@ -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;