Send at least . and .. when listing files.
Tentacle does not like empty data. Make sure we always send something
when listing files.
(cherry picked from commit 43a7f75343
)
This commit is contained in:
parent
bb6ab10fdb
commit
a3ab827374
|
@ -1168,7 +1168,6 @@ sub send_file_list {
|
|||
# List files.
|
||||
while (my $file = readdir ($dh)) {
|
||||
next if ($file =~ /[$t_invalid_chars]/); # Only list files valid for Tentacle.
|
||||
next if (-d $file); # Skip directories.
|
||||
$data .= "$file\n";
|
||||
}
|
||||
closedir $dh;
|
||||
|
|
Loading…
Reference in New Issue