]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/cp.pl
Bugfix 624 und 93.
[mfinanz.git] / bin / mozilla / cp.pl
index b68865a4fc0ed377996baa641548d22249b98531..c7b85c60a25079c7581b8a4d3d7f13b973a97792 100644 (file)
@@ -695,11 +695,13 @@ sub print {
     $form->{pdf} = 1;
   }
 
+  delete $form->{OUT};
+
   if ($form->{media} eq 'printer') {
     $form->{OUT} = "| $myconfig{printer}";
   }
   if ($form->{media} eq 'queue') {
-    %queued = split / /, $form->{queued};
+    %queued = map { s|.*/|| } split / /, $form->{queued};
 
     if ($filename = $queued{ $form->{formname} }) {
       unlink "$spool/$filename";