projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243b248
)
add a fake .pdf extension to placate some versions of IE. yay IE.
author
ivan
<ivan>
Fri, 2 Apr 2004 11:23:34 +0000
(11:23 +0000)
committer
ivan
<ivan>
Fri, 2 Apr 2004 11:23:34 +0000
(11:23 +0000)
httemplate/view/cust_bill-pdf.cgi
patch
|
blob
|
history
httemplate/view/cust_bill.cgi
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_bill-pdf.cgi
b/httemplate/view/cust_bill-pdf.cgi
index
7aa6910
..
4578b7b
100755
(executable)
--- a/
httemplate/view/cust_bill-pdf.cgi
+++ b/
httemplate/view/cust_bill-pdf.cgi
@@
-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});
diff --git
a/httemplate/view/cust_bill.cgi
b/httemplate/view/cust_bill.cgi
index
50ee8b3
..
7906af6
100755
(executable)
--- a/
httemplate/view/cust_bill.cgi
+++ b/
httemplate/view/cust_bill.cgi
@@
-31,7
+31,7
@@
print '<BR><BR>';
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>';
}