Loading tests/ftpserver.pl +32 −10 Original line number Diff line number Diff line Loading @@ -3167,9 +3167,14 @@ while(1) { $FTPCMD=$2; $FTPARG=$3; } # IMAP authentication cancellation elsif($full =~ /^\*$/) { # Command id has already been set $FTPCMD="*"; $FTPARG=""; } # IMAP long "commands" are base64 authentication data elsif(($full =~ /^[A-Z0-9+\/]*={0,2}$/i) || ($full == "*")) { elsif($full =~ /^[A-Z0-9+\/]*={0,2}$/i) { # Command id has already been set $FTPCMD=$full; $FTPARG=""; Loading @@ -3184,17 +3189,29 @@ while(1) { $FTPARG=$3; } elsif($proto eq "pop3") { # POP3 authentication cancellation if($full =~ /^\*$/) { $FTPCMD="*"; $FTPARG=""; } # POP3 long "commands" are base64 authentication data unless($full =~ /^[A-Z0-9+\/]*={0,2}$/i) { elsif($full =~ /^[A-Z0-9+\/]*={0,2}$/i) { $FTPCMD=$full; $FTPARG=""; } else { sendcontrol "-ERR Unrecognized command\r\n"; last; } $FTPCMD=$full; } elsif($proto eq "smtp") { # SMTP authentication cancellation if($full =~ /^\*$/) { $FTPCMD="*"; $FTPARG=""; } elsif(($proto eq "smtp") && ($full =~ /^[A-Z0-9+\/]{0,512}={0,2}$/i)) { # SMTP long "commands" are base64 authentication data. # SMTP long "commands" are base64 authentication data elsif($full =~ /^[A-Z0-9+\/]{0,512}={0,2}$/i) { $FTPCMD=$full; $FTPARG=""; } Loading @@ -3202,6 +3219,11 @@ while(1) { sendcontrol "500 Unrecognized command\r\n"; last; } } else { sendcontrol "500 Unrecognized command\r\n"; last; } logmsg "< \"$full\"\n"; Loading Loading
tests/ftpserver.pl +32 −10 Original line number Diff line number Diff line Loading @@ -3167,9 +3167,14 @@ while(1) { $FTPCMD=$2; $FTPARG=$3; } # IMAP authentication cancellation elsif($full =~ /^\*$/) { # Command id has already been set $FTPCMD="*"; $FTPARG=""; } # IMAP long "commands" are base64 authentication data elsif(($full =~ /^[A-Z0-9+\/]*={0,2}$/i) || ($full == "*")) { elsif($full =~ /^[A-Z0-9+\/]*={0,2}$/i) { # Command id has already been set $FTPCMD=$full; $FTPARG=""; Loading @@ -3184,17 +3189,29 @@ while(1) { $FTPARG=$3; } elsif($proto eq "pop3") { # POP3 authentication cancellation if($full =~ /^\*$/) { $FTPCMD="*"; $FTPARG=""; } # POP3 long "commands" are base64 authentication data unless($full =~ /^[A-Z0-9+\/]*={0,2}$/i) { elsif($full =~ /^[A-Z0-9+\/]*={0,2}$/i) { $FTPCMD=$full; $FTPARG=""; } else { sendcontrol "-ERR Unrecognized command\r\n"; last; } $FTPCMD=$full; } elsif($proto eq "smtp") { # SMTP authentication cancellation if($full =~ /^\*$/) { $FTPCMD="*"; $FTPARG=""; } elsif(($proto eq "smtp") && ($full =~ /^[A-Z0-9+\/]{0,512}={0,2}$/i)) { # SMTP long "commands" are base64 authentication data. # SMTP long "commands" are base64 authentication data elsif($full =~ /^[A-Z0-9+\/]{0,512}={0,2}$/i) { $FTPCMD=$full; $FTPARG=""; } Loading @@ -3202,6 +3219,11 @@ while(1) { sendcontrol "500 Unrecognized command\r\n"; last; } } else { sendcontrol "500 Unrecognized command\r\n"; last; } logmsg "< \"$full\"\n"; Loading