diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-16 14:20:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 14:20:29 +0200 |
commit | badad5343814cb68ec19646067078f241a74071a (patch) | |
tree | 0e6e90fd27b3b95621a226ebe3c1219b267344ea | |
parent | 2b5b33706ef016d998c4ce9b42a1967da3482c92 (diff) | |
parent | 3d9f29910ce6d317f70b2d4e7cacea2d33f28bb1 (diff) |
Merge pull request #49505 from underdoeg/patch-2
fix url parsing with port numbers
-rw-r--r-- | core/string/ustring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index 83ede0b11b..019754bc22 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -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(":"); |