From 7f496d8c3fd286f5d9738c8ad13f35912d7a6b7a Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Mon, 17 Sep 2007 21:44:57 +0000 Subject: Changed some FTP tests to validate the format of the PORT and EPRT commands sent by curl, if not the addresses themselves. --- tests/data/test146 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/data/test146') diff --git a/tests/data/test146 b/tests/data/test146 index 73895f29b..1c9779463 100644 --- a/tests/data/test146 +++ b/tests/data/test146 @@ -21,11 +21,10 @@ ftp://%HOSTIP:%FTPPORT/first/dir/here/146 ftp://%HOSTIP:%FTPPORT/146 # Verify data after the test has been "shot" -# strip all kinds of PORT, EPRT and LPRT curl can do +# Strip all valid kinds of PORT and EPRT that curl can send -^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}\| USER anonymous -- cgit v1.2.3