aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-14 10:27:28 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-14 10:27:28 +0000
commitb3174a713b56bbec272dfd55a9a06ce385416b13 (patch)
tree5b19637b0ecba6681c0bbeeea048867ad5d8dd91 /lib/net
parent1922efcddc8c2e7046f27b0d716baa3467e25b96 (diff)
downloadruby-b3174a713b56bbec272dfd55a9a06ce385416b13.tar.gz
* lib/net/ftp.rb (parse_mlsx_entry): parse pathnames including
space correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/ftp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 494cd478b1..fd11acb8b5 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -914,7 +914,7 @@ module Net
FACT_PARSERS["unix.atime"] = TIME_PARSER
def parse_mlsx_entry(entry)
- facts, pathname = entry.split(" ")
+ facts, pathname = entry.chomp.split(/ /, 2)
unless pathname
raise FTPProtoError, entry
end