Changed some FTP tests to validate the format of the PORT and EPRT commands

sent by curl, if not the addresses themselves.
This commit is contained in:
Dan Fandrich
2007-09-17 21:44:57 +00:00
parent 048c74f2fa
commit 7f496d8c3f
19 changed files with 74 additions and 73 deletions

View File

@@ -26,11 +26,10 @@ ftp://%HOSTIP:%FTPPORT/ -P - -l
<errorcode>
19
</errorcode>
# strip all kinds of PORT, EPRT and LPRT curl can do
# Strip all valid kinds of PORT and EPRT that curl can send
<strip>
^PORT 127,0,0,1,.*
^EPRT.*
^LPRT.*
^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
</strip>
<protocol>
USER anonymous