ftpserver.pl: Added the ability to include spaces in capabilities
For example: CAPA "SIZE 1048576" 8BITMIME BINARYMIME will populate the capabilities list with the following in: SIZE 1048576 8BITMIME BINARYMIME
This commit is contained in:
parent
c03335ec68
commit
016879d477
@ -2639,7 +2639,10 @@ sub customize {
|
|||||||
}
|
}
|
||||||
elsif($_ =~ /CAPA (.*)/) {
|
elsif($_ =~ /CAPA (.*)/) {
|
||||||
logmsg "FTPD: instructed to support CAPABILITY command\n";
|
logmsg "FTPD: instructed to support CAPABILITY command\n";
|
||||||
@capabilities = split(/ /, $1);
|
@capabilities = split(/ (?!(?:[^" ]|[^"] [^"])+")/, $1);
|
||||||
|
foreach (@capabilities) {
|
||||||
|
$_ = $1 if /^"(.*)"$/;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
elsif($_ =~ /AUTH (.*)/) {
|
elsif($_ =~ /AUTH (.*)/) {
|
||||||
logmsg "FTPD: instructed to support AUTHENTICATION command\n";
|
logmsg "FTPD: instructed to support AUTHENTICATION command\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user