mirror of
https://github.com/curl/curl.git
synced 2026-08-09 16:14:16 +03:00
Eric Vergnaud pointed out that libcurl didn't treat ?-letters in the user name
and password fields properly in URLs, like ftp://us?er:pass?word@site.com/. Added test 191 to verify the fix.
This commit is contained in:
parent
1aba99b1e7
commit
e8f85cba0f
6 changed files with 67 additions and 11 deletions
33
tests/data/test191
Normal file
33
tests/data/test191
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
data in file
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP URL with ?-letters in username and password
|
||||
</name>
|
||||
<command>
|
||||
"ftp://use?r:pass?word@%HOSTIP:%FTPPORT/191"
|
||||
</command>
|
||||
</test>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
USER use?r
|
||||
PASS pass?word
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
SIZE 191
|
||||
RETR 191
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
Loading…
Add table
Add a link
Reference in a new issue