From: ivan Date: Wed, 13 Jul 2011 16:34:33 +0000 (+0000) Subject: fix backend recharge w/prepaid card, RT#13478 X-Git-Tag: freeside_2_1_3~74 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=871dcd21f09f22605fefbabb5fe96d32d84a46a8 fix backend recharge w/prepaid card, RT#13478 --- diff --git a/httemplate/misc/process/recharge_svc.html b/httemplate/misc/process/recharge_svc.html index b56f8a282..2d49f6b06 100755 --- a/httemplate/misc/process/recharge_svc.html +++ b/httemplate/misc/process/recharge_svc.html @@ -22,6 +22,7 @@ $svcnum = $1; #untaint prepaid my $prepaid = $cgi->param('prepaid'); +$prepaid =~ s/\W//g; $prepaid =~ /^(\w*)$/; $prepaid = $1; diff --git a/httemplate/misc/recharge_svc.html b/httemplate/misc/recharge_svc.html index d8a8faad4..a1732fca5 100755 --- a/httemplate/misc/recharge_svc.html +++ b/httemplate/misc/recharge_svc.html @@ -18,14 +18,17 @@ } } - - <% $recharge_label ? '' : 'disabled' %>> - Prepaid Card % if ($recharge_label) { - > - <% $recharge_label %> + + > + Prepaid Card + > + <% $recharge_label %> + +% } else { +% $payby = 'PREP'; + % } - Enter prepaid card: >