From: mark Date: Wed, 30 Nov 2011 21:31:33 +0000 (+0000) Subject: fix manual credit card payment with term discounts, #15068 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=bd376d43f95dcdebcd180e7fff5caf0678edc15d;hp=2b506b8beb731f6319ddecaa34542978ee94dbb1 fix manual credit card payment with term discounts, #15068 --- diff --git a/httemplate/misc/process/payment.cgi b/httemplate/misc/process/payment.cgi index efbdb764c..bfa3f0ea9 100644 --- a/httemplate/misc/process/payment.cgi +++ b/httemplate/misc/process/payment.cgi @@ -129,7 +129,7 @@ if ( $payby eq 'CHEK' ) { die "unknown payby $payby"; } -$cgi->param('discount_term') =~ /^\d*$/ +$cgi->param('discount_term') =~ /^(\d)*$/ or errorpage("illegal discount_term"); my $discount_term = $1;