freeside/httemplate/view cust_bill-pdf.cgi,1.1.2.2,1.1.2.3 cust_bill.cgi,1.12.4.4,1.12.4.5

ivan ivan at pouncequick.420.am
Fri Apr 2 03:23:41 PST 2004


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory pouncequick:/tmp/cvs-serv29561/view

Modified Files:
      Tag: FREESIDE_1_4_BRANCH
	cust_bill-pdf.cgi cust_bill.cgi 
Log Message:
add a fake .pdf extension to placate some versions of IE.  yay IE.

Index: cust_bill.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill.cgi,v
retrieving revision 1.12.4.4
retrieving revision 1.12.4.5
diff -u -d -r1.12.4.4 -r1.12.4.5
--- cust_bill.cgi	12 Feb 2004 06:31:38 -0000	1.12.4.4
+++ cust_bill.cgi	2 Apr 2004 11:23:39 -0000	1.12.4.5
@@ -31,7 +31,7 @@
 my $conf = new FS::Conf;
 if ( $conf->exists('invoice_latex') ) {
   print menubar(
-    'View typeset invoice' => "${p}view/cust_bill-pdf.cgi?$invnum",
+    'View typeset invoice' => "${p}view/cust_bill-pdf.cgi?$invnum.pdf",
   ), '<BR><BR>';
 }
 

Index: cust_bill-pdf.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill-pdf.cgi,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- cust_bill-pdf.cgi	11 Jan 2004 23:38:18 -0000	1.1.2.2
+++ cust_bill-pdf.cgi	2 Apr 2004 11:23:39 -0000	1.1.2.3
@@ -2,7 +2,7 @@
 
 #untaint invnum
 my($query) = $cgi->keywords;
-$query =~ /^(\d+)$/;
+$query =~ /^(\d+)(.pdf)?$/;
 my $invnum = $1;
 
 my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});




More information about the freeside-commits mailing list