[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi selfservice.cgi, 1.40, 1.41
Ivan,,,
ivan at wavetail.420.am
Wed Sep 30 12:33:12 PDT 2009
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail.420.am:/tmp/cvs-serv24919
Modified Files:
selfservice.cgi
Log Message:
hopefully the final fix for the problems using remembered cards in self-service
Index: selfservice.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/selfservice.cgi,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- selfservice.cgi 26 Aug 2009 20:52:26 -0000 1.40
+++ selfservice.cgi 30 Sep 2009 19:33:09 -0000 1.41
@@ -361,7 +361,7 @@
sub payment_results {
- use Business::CreditCard;
+ use Business::CreditCard 0.30;
#we should only do basic checking here for DoS attacks and things
#that couldn't be constructed by the web form... let process_payment() do
@@ -372,8 +372,8 @@
my $amount = $1;
my $payinfo = $cgi->param('payinfo');
- $payinfo =~ s/\D//g;
- $payinfo =~ /^(\d{13,16})$/
+ $payinfo =~ s/[^\dx]//g;
+ $payinfo =~ /^([\dx]{13,16})$/
#or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
or die "illegal card"; #!!!
$payinfo = $1;
More information about the freeside-commits
mailing list