Land #5285, ActiveRecord::ReadOnlyRecord fix
commit
c70735436a
|
@ -46,7 +46,7 @@ module Msf::DBManager::Vuln
|
|||
|
||||
def find_vuln_by_refs(refs, host, service=nil)
|
||||
ref_ids = refs.find_all { |ref| ref.name.starts_with? 'CVE-'}
|
||||
host.vulns.joins(:refs).where(service_id: service.try(:id), refs: { id: ref_ids}).first
|
||||
host.vulns.includes(:refs).where(service_id: service.try(:id), refs: { id: ref_ids}).first
|
||||
end
|
||||
|
||||
def get_vuln(wspace, host, service, name, data='')
|
||||
|
|
Loading…
Reference in New Issue