Tim Waugh 300302
diff -U0 foomatic-filters-3.0-20080904/ChangeLog.ppd-filenames foomatic-filters-3.0-20080904/ChangeLog
Tim Waugh 300302
--- foomatic-filters-3.0-20080904/ChangeLog.ppd-filenames	2008-09-04 08:20:14.000000000 +0100
Tim Waugh 0b5d52
+++ foomatic-filters-3.0-20080904/ChangeLog	2008-09-23 09:58:01.000000000 +0100
Tim Waugh 0b5d52
@@ -0,0 +1,11 @@
Tim Waugh 0b5d52
+2008-09-23  Tim Waugh <twaugh@redhat.com>
Tim Waugh 0b5d52
+
Tim Waugh 0b5d52
+	* foomatic-rip.in: Remove final incorrect instance of
Tim Waugh 0b5d52
+	removespecialchars (bug #169).
Tim Waugh 0b5d52
+
Tim Waugh 300302
+2008-09-05  Till Kamppeter <till.kamppeter@gmail.com>
Tim Waugh 300302
+
Tim Waugh 300302
+	* foomatic-rip.in: Make foomatic-rip also working with PPD file
Tim Waugh 300302
+	  names which contain brackets or other special characters (Bug
Tim Waugh 300302
+	  #169).
Tim Waugh 300302
+
Tim Waugh 300302
diff -up foomatic-filters-3.0-20080904/foomatic-rip.in.ppd-filenames foomatic-filters-3.0-20080904/foomatic-rip.in
Tim Waugh 0b5d52
--- foomatic-filters-3.0-20080904/foomatic-rip.in.ppd-filenames	2008-09-23 09:57:43.000000000 +0100
Tim Waugh 0b5d52
+++ foomatic-filters-3.0-20080904/foomatic-rip.in	2008-09-23 09:58:01.000000000 +0100
Tim Waugh 0b5d52
@@ -349,7 +349,7 @@ foreach my $shell ('/bin/sh', '/bin/bash
Tim Waugh 0b5d52
 if (defined($ENV{'PPD'})) {
Tim Waugh 0b5d52
     # Clean the file name from weird characters which could cause
Tim Waugh 0b5d52
     # unexpected behaviour
Tim Waugh 0b5d52
-    $ppdfile = removespecialchars($ENV{'PPD'});
Tim Waugh 0b5d52
+    $ppdfile = $ENV{'PPD'};
Tim Waugh 0b5d52
     # CUPS, Solaris LP, and PPR (RIP filter) use the "PPD" environment variable
Tim Waugh 0b5d52
     # to make the PPD file name available (we set CUPS here preliminarily,
Tim Waugh 0b5d52
     # in the next step we check for Solaris LP and the PPR)
Tim Waugh 300302
@@ -517,10 +517,10 @@ if (defined($ENV{'PRINTCAP_ENTRY'})){
Tim Waugh 300302
 # PPD file name given via the command line
Tim Waugh 300302
 # allow duplicates, and use the last specified one
Tim Waugh 300302
 while ( ($spooler ne 'lprng') and ($argstr =~ s/\x01-p(\x01|)([^\x01]+)\x01/\x01/)) {
Tim Waugh 300302
-    $ppdfile = removeshellescapes($2);
Tim Waugh 300302
+    $ppdfile = $2;
Tim Waugh 300302
 }
Tim Waugh 300302
 while ($argstr =~ s/\x01--ppd(\x01|=|)([^\x01]+)\x01/\x01/) {
Tim Waugh 300302
-    $ppdfile = removeshellescapes($2);
Tim Waugh 300302
+    $ppdfile = $2;
Tim Waugh 300302
 }
Tim Waugh 300302
 
Tim Waugh 300302
 # Check for LPD/GNUlpr by typical options which the spooler puts onto
Tim Waugh 300302
@@ -818,7 +818,7 @@ if (($spooler eq 'lpd') ||
Tim Waugh 300302
     ($spooler eq 'gnulpr')) {
Tim Waugh 300302
 
Tim Waugh 300302
     # Get PPD file name as the last command line argument
Tim Waugh 300302
-    $ppdfile = removeshellescapes($rargs[$#rargs]);
Tim Waugh 300302
+    $ppdfile = $rargs[$#rargs];
Tim Waugh 300302
 
Tim Waugh 300302
 }
Tim Waugh 300302