]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: fix parsing URL without slash with CURLU_URLENCODE
authorDaniel Stenberg <daniel@haxx.se>
Tue, 18 Oct 2022 13:54:06 +0000 (15:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 20 Oct 2022 06:56:53 +0000 (08:56 +0200)
commit7d6cf06f571d57752682e17341c8bb0eb4253dce
tree026d7ab2c6e8f0f6e7dac9f92280bc5d80d037a0
parent81094cb49256dec3bdbe94052f8542b15d54e4a1
urlapi: fix parsing URL without slash with CURLU_URLENCODE

When CURLU_URLENCODE is set, the parser would mistreat the path
component if the URL was specified without a slash like in
http://local.test:80?-123

Extended test 1560 to reproduce and verify the fix.

Reported-by: Trail of Bits
Closes #9763
lib/urlapi.c
tests/libtest/lib1560.c