about summary refs log tree commit
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>2008-02-10 00:26:58 +0000
committerGraham Barr <gbarr@pobox.com>2009-02-24 10:40:49 -0600
commit294c44c5961c6a7fa973b3b32b40099040a81684 (patch)
tree1f4d9cbe89b01279a12ee6d63e9994103ef3b773
parent4850c165866e39532b0dcce59e67aae5af9a65ea (diff)
downloadperl-libnet-294c44c5961c6a7fa973b3b32b40099040a81684.tar.gz
Allow words other than FILE to prefix the unique name returned in info message from stou
-rw-r--r--Net/FTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Net/FTP.pm b/Net/FTP.pm
index e0a275e..8096c43 100644
--- a/Net/FTP.pm
+++ b/Net/FTP.pm
@@ -739,7 +739,7 @@ sub _store_cmd {
   $sock = $ftp->_data_cmd($cmd, grep { defined } $remote)
     or return undef;
 
-  $remote = ($ftp->message =~ /FILE:\s*(.*)/)[0]
+  $remote = ($ftp->message =~ /\w+\s*:\s*(.*)/)[0]
     if 'STOU' eq uc $cmd;
 
   my $blksize = ${*$ftp}{'net_ftp_blksize'};