freeside/httemplate/misc upload-batch.cgi,1.3,1.4
ivan
ivan at pouncequick.420.am
Fri May 28 04:33:23 PDT 2004
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory pouncequick:/tmp/cvs-serv1609
Modified Files:
upload-batch.cgi
Log Message:
not entirely sure why we're checking the filename at all... to catch empty form submissions?
Index: upload-batch.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/upload-batch.cgi,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- upload-batch.cgi 28 May 2004 11:21:46 -0000 1.3
+++ upload-batch.cgi 28 May 2004 11:33:21 -0000 1.4
@@ -2,8 +2,9 @@
my $fh = $cgi->upload('batch_results');
my $filename = $cgi->param('batch_results');
- $filename =~ /^.*[\/\\]([^\/\\]+)$/ or die "unparsable filename: $filename\n";
- my $paybatch = $1;
+ $filename =~ /^(.*[\/\\])?([^\/\\]+)$/
+ or die "unparsable filename: $filename\n";
+ my $paybatch = $2;
my $error = defined($fh)
? FS::cust_pay_batch::import_results( {
More information about the freeside-commits
mailing list