projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2e1a371
)
not entirely sure why we're checking the filename at all... to catch empty form submi...
author
ivan
<ivan>
Fri, 28 May 2004 11:33:21 +0000
(11:33 +0000)
committer
ivan
<ivan>
Fri, 28 May 2004 11:33:21 +0000
(11:33 +0000)
httemplate/misc/upload-batch.cgi
patch
|
blob
|
history
diff --git
a/httemplate/misc/upload-batch.cgi
b/httemplate/misc/upload-batch.cgi
index
da5e41c
..
5d01501
100644
(file)
--- a/
httemplate/misc/upload-batch.cgi
+++ b/
httemplate/misc/upload-batch.cgi
@@
-2,8
+2,9
@@
my $fh = $cgi->upload('batch_results');
my $filename = $cgi->param('batch_results');
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( {
my $error = defined($fh)
? FS::cust_pay_batch::import_results( {