From: Jan Büren Date: Fri, 23 Dec 2016 11:04:38 +0000 (+0100) Subject: Webdav-Datei-Aufruf direkt mit Backend-Funktion X-Git-Tag: release-3.5.4~1786 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=359506e56c71e419ac82c2adf0de22cfd6d59cfa;p=kivitendo-erp.git Webdav-Datei-Aufruf direkt mit Backend-Funktion Webdav Pfad und Dateiname muss nicht bei der Parameterübergabe zusammengebaut werden. Besser direkt die Funktion Webdav->full_filedescriptor hierfür nutzen --- diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index 25c11f780..cfc1f6867 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -616,7 +616,7 @@ sub init_webdav_objects { return [ map { +{ name => $_->filename, type => t8('File'), - link => File::Spec->catdir($webdav_path, $_->filename), + link => File::Spec->catfile($_->full_filedescriptor), } } @all_objects ]; } diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 5c0102b39..82b8a2ab0 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1081,7 +1081,7 @@ sub _pre_render { my @all_objects = $webdav->get_all_objects; @{ $self->{template_args}->{WEBDAV} } = map { { name => $_->filename, type => t8('File'), - link => File::Spec->catdir($webdav_path, $_->filename), + link => File::Spec->catfile($_->full_filedescriptor), } } @all_objects; } diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 0af34509a..4ceb12819 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -137,7 +137,7 @@ sub display_form { my @all_objects = $webdav->get_all_objects; @{ $form->{WEBDAV} } = map { { name => $_->filename, type => t8('File'), - link => File::Spec->catdir($webdav_path, $_->filename), + link => File::Spec->catfile($_->full_filedescriptor), } } @all_objects; } &form_header; diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 2c5f74a7e..7237a593c 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -211,7 +211,7 @@ sub edit { my @all_objects = $webdav->get_all_objects; @{ $form->{WEBDAV} } = map { { name => $_->filename, type => t8('File'), - link => File::Spec->catdir($webdav_path, $_->filename), + link => File::Spec->catfile($_->full_filedescriptor), } } @all_objects; } form_header();