diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ftpserver.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 74cf9f230..0975a20dd 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -2639,7 +2639,10 @@ sub customize { } elsif($_ =~ /CAPA (.*)/) { logmsg "FTPD: instructed to support CAPABILITY command\n"; - @capabilities = split(/ /, $1); + @capabilities = split(/ (?!(?:[^" ]|[^"] [^"])+")/, $1); + foreach (@capabilities) { + $_ = $1 if /^"(.*)"$/; + } } elsif($_ =~ /AUTH (.*)/) { logmsg "FTPD: instructed to support AUTHENTICATION command\n"; |