[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi
selfservice.cgi, 1.14, 1.15
Ivan,,,
ivan at wavetail.420.am
Sun Nov 5 10:04:02 PST 2006
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail:/tmp/cvs-serv1059/fs_selfservice/FS-SelfService/cgi
Modified Files:
selfservice.cgi
Log Message:
have card_type be an optional param anyway
Index: selfservice.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/selfservice.cgi,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- selfservice.cgi 5 Nov 2006 17:36:09 -0000 1.14
+++ selfservice.cgi 5 Nov 2006 18:03:59 -0000 1.15
@@ -128,9 +128,12 @@
validate($payinfo)
#or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
or die "invalid card"; #!!!
- cardtype($payinfo) eq $cgi->param('card_type')
- #or $error ||= $init_data->{msgcat}{not_a}. $cgi->param('CARD_type');
- or die "not a ". $cgi->param('card_type');
+
+ if ( $cgi->param('card_type' ) {
+ cardtype($payinfo) eq $cgi->param('card_type')
+ #or $error ||= $init_data->{msgcat}{not_a}. $cgi->param('CARD_type');
+ or die "not a ". $cgi->param('card_type');
+ }
$cgi->param('month') =~ /^(\d{2})$/ or die "illegal month";
my $month = $1;
More information about the freeside-commits
mailing list