freeside/httemplate/misc upload-batch.cgi,1.2,1.3

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


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

Modified Files:
	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.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- upload-batch.cgi	8 Oct 2003 04:09:05 -0000	1.2
+++ upload-batch.cgi	28 May 2004 11:21:46 -0000	1.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