X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FCommon.pm;h=82cadbfaf702366cc766c5968f28d952c214ebd0;hb=71d1fccd416499c24500f33d04651ac83a8d232c;hp=127209a7ff7975e56a521a96fc7beef70e215783;hpb=e0e3eee4eb59b7d6fbe17fe9ad12167b6b8a388b;p=kivitendo-erp.git diff --git a/SL/Common.pm b/SL/Common.pm index 127209a7f..82cadbfaf 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -647,7 +647,7 @@ sub copy_file_to_webdav_folder { my $timestamp = get_current_formatted_time(); my $new_file = File::Spec->catfile($form->{cwd}, $webdav_folder, $form->generate_attachment_filename()); - $new_file =~ s/\./$timestamp\./; + $new_file =~ s{(.*)\.}{$1$timestamp\.}; if (!File::Copy::copy($current_file, $new_file)) { $::lxdebug->message(LXDebug::WARN(), "Copy file from $current_file to $new_file failed: $ERRNO");