freeside/httemplate/misc upload-batch.cgi,1.1.2.2,1.1.2.3

ivan ivan at pouncequick.420.am
Fri May 28 04:21:49 PDT 2004


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory pouncequick:/tmp/cvs-serv1378

Modified Files:
      Tag: FREESIDE_1_4_BRANCH
	upload-batch.cgi 
Log Message:
better error reporting on unparsable filenames

Index: upload-batch.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/upload-batch.cgi,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- upload-batch.cgi	8 Oct 2003 04:09:03 -0000	1.1.2.2
+++ upload-batch.cgi	28 May 2004 11:21:47 -0000	1.1.2.3
@@ -2,7 +2,7 @@
 
   my $fh = $cgi->upload('batch_results');
   my $filename = $cgi->param('batch_results');
-  $filename =~ /^.*[\/\\]([^\/\\]+)$/ or die;
+  $filename =~ /^.*[\/\\]([^\/\\]+)$/ or die "unparsable filename: $filename\n";
   my $paybatch = $1;
 
   my $error = defined($fh)




More information about the freeside-commits mailing list