Skip to content

Commit fec2301

Browse files
committed
Land rapid7#7037, db_export -f xml stack trace fix
Missed during the Rails upgrade.
2 parents cdf3c63 + 343f401 commit fec2301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/db_export.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ def extract_host_entries
125125
@owned_hosts = []
126126
@hosts = myworkspace.hosts
127127
@hosts.each do |host|
128-
if host.notes.find :first, :conditions => { :ntype => 'pro.system.compromise' }
128+
if host.notes.where(ntype: 'pro.system.compromise').first
129129
@owned_hosts << host
130130
end
131131
end
132132
end
133133

134134
# Extracts all events from a project, storing them in @events
135135
def extract_event_entries
136-
@events = myworkspace.events.find :all, :order => 'created_at ASC'
136+
@events = myworkspace.events.order('created_at ASC')
137137
end
138138

139139
# Extracts all services from a project, storing them in @services

0 commit comments

Comments
 (0)