mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
Prevent uploading to a URL that has no file name part.
This commit is contained in:
parent
aa50a00898
commit
7d68101f83
6 changed files with 82 additions and 3 deletions
44
tests/data/test524
Normal file
44
tests/data/test524
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
UPLOAD
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<tool>
|
||||
lib524
|
||||
</tool>
|
||||
<name>
|
||||
FTP upload with target URL ending with slash
|
||||
</name>
|
||||
# first URL then proxy
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/path/to/
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS curl_by_daniel@haxx.se
|
||||
PWD
|
||||
</protocol>
|
||||
|
||||
# 3 is CURLE_URL_MALFORMAT
|
||||
<errorcode>
|
||||
3
|
||||
</errorcode>
|
||||
</verify>
|
||||
Loading…
Add table
Add a link
Reference in a new issue