[curl/curl] 313a9b: curl_url_set: reject spaces in URLs w/o CURLU_ALLO...
Daniel Stenberg <[email protected]> Tue, 01 Jun 2021 15:02:45 -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: 313a9bdce94e1e5ecceb209863a14b1b97cf2ac6
https://github.com/curl/curl/commit/313a9bdce94e1e5ecceb209863a14b1b97cf2ac6
Author: Daniel Stenberg <[email protected]>
Date: 2021-06-02 (Wed, 02 Jun 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