Land #4648, YAML parsing fix

Prefer regex. For reasons...
bug/bundler_fix
William Vu 2015-01-27 10:59:05 -06:00
commit 2b706f222a
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ class Metasploit4 < Msf::Post
# one anyway.
def extract_key(path)
data = read_file(path)
keys = data.split(":").strip.select {|k| k =~ /[0-9a-f]{32}/ }
keys.first
keys = data.split(':').select { |k| k =~ /[0-9a-f]{32}/ }
keys.first.strip
end
def download_key(paths)