}
sub tmpname {
- return "/tmp/lx-office-tmp-" . unique_id();
+ return "/tmp/kivitendo-tmp-" . unique_id();
}
sub retrieve_parts {
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'),
};
}
$intnotes .= "\n\n" if ($intnotes);
- my $cc = $main::locale->text('Cc') . ": $form->{cc}\n" if $form->{cc};
- my $bcc = $main::locale->text('Bcc') . ": $form->{bcc}\n" if $form->{bcc};
+ my $cc = $form->{cc} ? $main::locale->text('Cc') . ": $form->{cc}\n" : '';
+ my $bcc = $form->{bcc} ? $main::locale->text('Bcc') . ": $form->{bcc}\n" : '';
my $now = scalar localtime;
$intnotes .= $main::locale->text('[email]') . "\n"