curl / trurl

trurl is a command line tool for URL parsing and manipulation.
https://curl.se/trurl/
Other
3.1k stars 99 forks source link

return error when failing to get a URL component #307

Closed bagder closed 3 months ago

bagder commented 3 months ago

Most typically when %00 or something crazy is used in the component and it is extracted URL decoded. Makes trurl return ERROR_GET (10) now.

Added two tests to verify.

Reported-by: yahesh on github Fixes #305

bagder commented 3 months ago

I got second thoughts on this. What if multiple URLs are handled...