projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
can't use File::Basename::basename for windows filenames! use a regex instead
[freeside.git]
/
httemplate
/
misc
/
upload-batch.cgi
diff --git
a/httemplate/misc/upload-batch.cgi
b/httemplate/misc/upload-batch.cgi
index
565a6da
..
cc53466
100644
(file)
--- a/
httemplate/misc/upload-batch.cgi
+++ b/
httemplate/misc/upload-batch.cgi
@@
-2,7
+2,8
@@
my $fh = $cgi->upload('batch_results');
my $filename = $cgi->param('batch_results');
my $fh = $cgi->upload('batch_results');
my $filename = $cgi->param('batch_results');
- my $paybatch = basename($filename);
+ $filename =~ /^.*[\/\\]([^\/\\]+)$/ or die;
+ my $paybatch = $1;
my $error = defined($fh)
? FS::cust_pay_batch::import_results( {
my $error = defined($fh)
? FS::cust_pay_batch::import_results( {