Revision d4ea1fa8
Von Sven Schöling vor fast 14 Jahren hinzugefügt
SL/Common.pm | ||
---|---|---|
mkdir_with_parents($path);
|
||
|
||
} else {
|
||
my $base_path = substr($ENV{'SCRIPT_NAME'}, 1);
|
||
my $base_path = $ENV{'SCRIPT_NAME'};
|
||
$base_path =~ s|[^/]+$||;
|
||
$base_path =~ s|/$||;
|
||
# wo kommt der wert für dir her? es wird doch gar nichts übergeben? fix für strict my $dir jb 21.2.
|
||
if (opendir my $dir, $path) {
|
||
foreach my $file (sort { lc $a cmp lc $b } readdir $dir) {
|
||
... | ... | |
|
||
push @{ $form->{WEBDAV} }, {
|
||
'name' => $fname,
|
||
'link' => "$base_path/$file",
|
||
'link' => $base_path . $file,
|
||
'type' => $is_directory ? $main::locale->text('Directory') : $main::locale->text('File'),
|
||
};
|
||
}
|
Auch abrufbar als: Unified diff
Nachträglicher Fix zu Bug 1332: Webdav Links in Szenarien wo lxoffice im web root installiert ist.