diff --git a/lib/msf/util/svn.rb b/lib/msf/util/svn.rb index 7d3dcdbecc..ac41372ae4 100644 --- a/lib/msf/util/svn.rb +++ b/lib/msf/util/svn.rb @@ -19,22 +19,36 @@ class SVN if !::File.exists?(path) return info end - ents = [] + contents = '' File.open(path, "rb") do |fd| - ents = fd.read(::File.size(path)).split("\x0c") + contents = fd.read(::File.size(path)) end - ents[0].split("\n").each do |line| - line.strip! - next if line.empty? - case line - when /framework3/ - info[:root] = line - when /^\d+$/ - info[:revision] = line.to_i - when /^\d{4}-\d.*T/ - info[:updated] = line + if contents.include? "