mirror of
https://github.com/curl/curl.git
synced 2026-07-24 10:57:16 +03:00
urlapi: don't accept blank port number field without scheme
... as it makes the URL parser accept "very-long-hostname://" as a valid host name and we don't want that. The parser now only accepts a blank (no digits) after the colon if the URL starts with a scheme. Reported-by: d4d on hackerone Closes #6283
This commit is contained in:
parent
2260e0ebe6
commit
abd846c374
4 changed files with 39 additions and 18 deletions
|
|
@ -14,7 +14,7 @@ none
|
|||
unittest
|
||||
</features>
|
||||
<name>
|
||||
urlapi
|
||||
urlapi port number parsing
|
||||
</name>
|
||||
</client>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue