[curl/curl] 40658c: curl_url_set: reject spaces in URLs w/o CURLU_ALLO...
Daniel Stenberg <[email protected]> Mon, 24 May 2021 07:21:04 -0700
| Newsgroups | gmane.comp.web.curl.cvs |
|---|---|
| Message-ID | <curl/curl/push/refs/heads/bagder/url_set-space/[email protected]> |
Branch: refs/heads/bagder/url_set-space
Home: https://github.com/curl/curl
Commit: 40658cdffc356ecc564338583c33c5e289517312
https://github.com/curl/curl/commit/40658cdffc356ecc564338583c33c5e289517312
Author: Daniel Stenberg <[email protected]>
Date: 2021-05-24 (Mon, 24 May 2021)
Changed paths:
M docs/libcurl/curl_url_set.3
M docs/libcurl/symbols-in-versions
M include/curl/urlapi.h
M lib/transfer.c
M lib/urlapi.c
M tests/data/test1916
M tests/data/test1917
M tests/libtest/lib1560.c
Log Message:
-----------
curl_url_set: reject spaces in URLs w/o CURLU_ALLOW_SPACE
They were never officially allowed and slipped in only due to sloppy
parsing. Spaces (ascii 32) should be correctly encoded (to %20) before
being part of a URL.
The new flag bit CURLU_ALLOW_SPACE when a full URL is set, makes libcurl
allow spaces.
Updated test 1560 to verify.
Closes #7073
_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits