mirror of
https://github.com/curl/curl.git
synced 2026-08-06 02:46:13 +03:00
urlapi: allow more path characters "raw" when asked to URL encode
Setting the path component to contain the letters:
! $ & ' ( ) { } [ ] * + , ; = : @
now leaves them un-encoded when CURLU_URLENCODE is used.
Amended test 1560 to verify.
Reported-by: Jeroen Ooms
Fixes #17977
This commit is contained in:
parent
1055144063
commit
768c0f0779
3 changed files with 24 additions and 5 deletions
|
|
@ -184,8 +184,10 @@ course cannot know if the provided scheme is a valid one or not.
|
|||
When set, curl_url_set(3) URL encodes the part on entry, except for
|
||||
**scheme**, **port** and **URL**.
|
||||
|
||||
When setting the path component with URL encoding enabled, the slash character
|
||||
is skipped.
|
||||
When setting the path component with URL encoding enabled, the following
|
||||
characters are left as-is if present:
|
||||
|
||||
! $ & ' ( ) { } [ ] * + , ; = : @
|
||||
|
||||
The query part gets space-to-plus converted before the URL conversion is
|
||||
applied.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue