diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-11-10 10:20:50 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-11-10 10:20:50 +0000 |
commit | c876f6ae6d8eac640dc9c9880daa0137d6d5d8fd (patch) | |
tree | 40cc59dbb8609f18b7984c470f56c3be699dbfdf /tests/ftpserver.pl | |
parent | f49276bfcbfa2e8e73bb01c7f7103126de1c1da2 (diff) | |
download | curl-c876f6ae6d8eac640dc9c9880daa0137d6d5d8fd.tar.gz |
ftpserver.pl: Reworked unrecognised command responses
As the IMAP regex could fail and $1 would not contain the command id
updated the unrecognised command response to be more generic and
realistic (like those used in the command handlers).
Additionally updated the POP3, SMTP and FTP responses.
Diffstat (limited to 'tests/ftpserver.pl')
-rwxr-xr-x | tests/ftpserver.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 410bbd4ec..4f0e9f20c 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -3062,7 +3062,7 @@ while(1) { $FTPARG=""; } else { - sendcontrol "$1 '$full': command not understood.\r\n"; + sendcontrol "$full BAD Command\r\n"; last; } } @@ -3073,7 +3073,7 @@ while(1) { elsif($proto eq "pop3") { # POP3 long "commands" are base64 authentication data unless($full =~ /^[A-Z0-9+\/]*={0,2}$/i) { - sendcontrol "-ERR '$full': command not understood.\r\n"; + sendcontrol "-ERR Unrecognized command\r\n"; last; } @@ -3086,7 +3086,7 @@ while(1) { $FTPARG=""; } else { - sendcontrol "500 '$full': command not understood.\r\n"; + sendcontrol "500 Unrecognized command\r\n"; last; } |