From d4ea1fa81c16987e01378209c49fc7b94a0b0a7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 18 May 2011 15:25:04 +0200 Subject: [PATCH] =?utf8?q?Nachtr=C3=A4glicher=20Fix=20zu=20Bug=201332:=20W?= =?utf8?q?ebdav=20Links=20in=20Szenarien=20wo=20lxoffice=20im=20web=20root?= =?utf8?q?=20installiert=20ist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Common.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SL/Common.pm b/SL/Common.pm index dae75322f..c0bca0195 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -372,9 +372,8 @@ sub webdav_folder { 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) { @@ -390,7 +389,7 @@ sub webdav_folder { push @{ $form->{WEBDAV} }, { 'name' => $fname, - 'link' => "$base_path/$file", + 'link' => $base_path . $file, 'type' => $is_directory ? $main::locale->text('Directory') : $main::locale->text('File'), }; } -- 2.20.1