]> granicus.if.org Git - curl/commitdiff
ftpserver: support case insensitive commands
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 Oct 2017 14:58:40 +0000 (16:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Oct 2017 21:00:52 +0000 (23:00 +0200)
tests/ftpserver.pl

index 77d0b6faf4637b1e1f9999496def215ccad1e22d..ae8b4a017551b2701c4f4bbd713dcd486188c95d 100755 (executable)
@@ -3193,7 +3193,7 @@ while(1) {
                 }
 
                 # only perform this if we're not faking a reply
-                my $func = $commandfunc{$FTPCMD};
+                my $func = $commandfunc{uc($FTPCMD)};
                 if($func) {
                     &$func($FTPARG, $FTPCMD);
                     $check = 0;