mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
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 43a7f75343518092174b20c9abb41361616ca901)
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…
x
Reference in New Issue
Block a user