Land #13949, Fix casting issue with the update mode in DBManager::Note's report_note function

This commit is contained in:
gwillcox-r7 2020-08-06 14:36:57 -05:00
commit 80889b2b86
No known key found for this signature in database
GPG Key ID: D35E05C0F2B81E83
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ module Msf::DBManager::Note
conditions[:service_id] = service[:id] if service
conditions[:vuln_id] = opts[:vuln_id]
case mode
case mode.to_sym
when :unique
note = wspace.notes.where(conditions).first_or_initialize
note.data = data