X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FTemplate.pm;h=297c025fb1fea6437f615390589096205ce96465;hb=6216f7b53a81a73641a2d98ea43f363b6a615b07;hp=f6afe692a07e238b89507e957da80da883ffc765;hpb=5ada8632263f93bfaa78d9136cc815fbeee95ead;p=kivitendo-erp.git diff --git a/SL/Template.pm b/SL/Template.pm index f6afe692a..297c025fb 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -503,7 +503,7 @@ sub convert_to_postscript { return 0; } - $form->{tmpfile} =~ s/$userspath\///g; + $form->{tmpfile} =~ s/\Q$userspath\E\///g; for (my $run = 1; $run <= 2; $run++) { system("latex --interaction=nonstopmode $form->{tmpfile} " . @@ -542,7 +542,7 @@ sub convert_to_pdf { return 0; } - $form->{tmpfile} =~ s/$userspath\///g; + $form->{tmpfile} =~ s/\Q$userspath\E\///g; for (my $run = 1; $run <= 2; $run++) { system("pdflatex --interaction=nonstopmode $form->{tmpfile} " . @@ -650,7 +650,7 @@ sub convert_to_postscript { return 0; } - $form->{"tmpfile"} =~ s/$userspath\///g; + $form->{"tmpfile"} =~ s/\Q$userspath\E\///g; my $psfile = $form->{"tmpfile"}; $psfile =~ s/.html/.ps/; if ($psfile eq $form->{"tmpfile"}) { @@ -683,7 +683,7 @@ sub convert_to_pdf { return 0; } - $form->{"tmpfile"} =~ s/$userspath\///g; + $form->{"tmpfile"} =~ s/\Q$userspath\E\///g; my $pdffile = $form->{"tmpfile"}; $pdffile =~ s/.html/.pdf/; if ($pdffile eq $form->{"tmpfile"}) {