summaryrefslogtreecommitdiff
path: root/httemplate/view/cust_bill-pdf.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/cust_bill-pdf.cgi')
-rwxr-xr-xhttemplate/view/cust_bill-pdf.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/view/cust_bill-pdf.cgi b/httemplate/view/cust_bill-pdf.cgi
index 7aa69100d..4578b7b9c 100755
--- 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});