mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
61d259f950
Accessing a file with an absolute path in the root dir but with no directory specified was not handled correctly. This fix comes with four new test cases that verify it. Bug: http://curl.haxx.se/mail/lib-2013-04/0142.html Reported by: Sam Deane
53 lines
627 B
Plaintext
53 lines
627 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
EPSV
|
|
TYPE A
|
|
RETR
|
|
type=
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
data
|
|
to
|
|
see
|
|
that FTP
|
|
works
|
|
so does it?
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<name>
|
|
FTP GET with type=A style ASCII URL using %20 codes
|
|
</name>
|
|
<command>
|
|
"ftp://%HOSTIP:%FTPPORT//path%20with%20%20spaces//and%20things2/106;type=A"
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
CWD /
|
|
CWD path with spaces
|
|
CWD and things2
|
|
EPSV
|
|
TYPE A
|
|
SIZE 106
|
|
RETR 106
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|