]> git.ipfire.org Git - thirdparty/curl.git/commit
curl_url_set: reject spaces in URLs w/o CURLU_ALLOW_SPACE
authorDaniel Stenberg <daniel@haxx.se>
Mon, 31 May 2021 06:59:24 +0000 (08:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 15 Jun 2021 08:49:49 +0000 (10:49 +0200)
commitb67d3ba73e98cba63dc6246ee0da22ea803ec3e8
tree5a572311875f11ebd262eaf75d81d6a35b6e9548
parent8f717b6cf0e55a4caaac4550221b97559a1f9b57
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
docs/libcurl/curl_url_set.3
docs/libcurl/symbols-in-versions
include/curl/urlapi.h
lib/transfer.c
lib/urlapi.c
tests/data/test1916
tests/data/test1917
tests/libtest/lib1560.c