]> granicus.if.org Git - curl/commitdiff
ftpserver.pl: Added support for empty pop3 authentication data
authorSteve Holme <steve_holme@hotmail.com>
Wed, 23 Oct 2013 21:19:42 +0000 (22:19 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 23 Oct 2013 21:19:42 +0000 (22:19 +0100)
tests/ftpserver.pl

index 803273db66122816953a140a77c8fd109afb19ee..1d209d8d9c28cf8f79411534ee1e882bc35567e3 100755 (executable)
@@ -3065,7 +3065,7 @@ while(1) {
         }
         elsif($proto eq "pop3") {
             # POP3 long "commands" are base64 authentication data
-            unless($full =~ /^[A-Z0-9+\/]+={0,2}$/i) {
+            unless($full =~ /^[A-Z0-9+\/]*={0,2}$/i) {
                 sendcontrol "-ERR '$full': command not understood.\r\n";
                 last;
             }