mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:27:16 +03:00
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
This commit is contained in:
parent
8f717b6cf0
commit
b67d3ba73e
8 changed files with 60 additions and 19 deletions
|
|
@ -33,7 +33,7 @@ MQTT PUBLISH with no POSTFIELDSIZE set
|
|||
lib%TESTNUMBER
|
||||
</tool>
|
||||
<command option="binary-trace">
|
||||
"mqtt://%HOSTIP:%MQTTPORT/ "
|
||||
"mqtt://%HOSTIP:%MQTTPORT/%20"
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ MQTT PUBLISH with CURLOPT_POST set (no payload)
|
|||
lib%TESTNUMBER
|
||||
</tool>
|
||||
<command option="binary-trace">
|
||||
"mqtt://%HOSTIP:%MQTTPORT/ "
|
||||
"mqtt://%HOSTIP:%MQTTPORT/%20"
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue