Skip to content

Commit

Permalink
Merge pull request #49505 from underdoeg/patch-2
Browse files Browse the repository at this point in the history
fix url parsing with port numbers
  • Loading branch information
akien-mga authored Jun 16, 2021
2 parents 2b5b337 + 3d9f299 commit badad53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/string/ustring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Error String::parse_url(String &r_scheme, String &r_host, int &r_port, String &r
base = base.substr(pos + 1, base.length() - pos - 1);
} else {
// Anything else
if (base.get_slice_count(":") > 1) {
if (base.get_slice_count(":") > 2) {
return ERR_INVALID_PARAMETER;
}
pos = base.rfind(":");
Expand Down

0 comments on commit badad53

Please sign in to comment.