Skip to content

Commit

Permalink
fix: Support special characters in URL user info
Browse files Browse the repository at this point in the history
Bump CxxUrl to v0.3 to fix a URL parsing bug, as suggested by Russell
McClellan.

Fixes ccache#941.
  • Loading branch information
jrosdahl committed Oct 6, 2021
1 parent 964369a commit 5243c21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:

----
Expand Down
2 changes: 1 addition & 1 deletion src/third_party/url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5243c21

Please sign in to comment.