]> granicus.if.org Git - curl/commit
url: a short host name + port is not a scheme
authorDaniel Stenberg <daniel@haxx.se>
Fri, 2 Nov 2018 22:46:01 +0000 (23:46 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 3 Nov 2018 14:01:27 +0000 (15:01 +0100)
commit226cfa8264cd979eff3fd52c0f3585ef095e7cf2
tree5173dac13278084a73559a974a772a021cccaa07
parentb28094833a971870fd8c07960b3b12bf6fbbaad3
url: a short host name + port is not a scheme

The function identifying a leading "scheme" part of the URL considered a few
letters ending with a colon to be a scheme, making something like "short:80"
to become an unknown scheme instead of a short host name and a port number.

Extended test 1560 to verify.

Reported-by: Hagai Auro
Fixes #3220
Closes #3223
lib/urlapi.c
tests/libtest/lib1560.c