Skip to content

Commit f775a0b

Browse files
Tod Beardsleyaveragesecurityguy
authored andcommitted
Handle single quotes for OpenVAS import
1 parent e057631 commit f775a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/db.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2975,7 +2975,7 @@ def import_filetype_detect(data)
29752975
elsif (firstline.index("<get_reports_response status=\"200\" status_text=\"OK\">"))
29762976
@import_filedata[:type] = "OpenVAS XML"
29772977
return :openvas_new_xml
2978-
elsif (firstline.index("<report id=\""))
2978+
elsif (firstline.index("<report id=\"") or firstline.index("<report id=\'"))
29792979
@import_filedata[:type] = "OpenVAS XML"
29802980
return :openvas_new_xml
29812981
elsif (firstline.index("<NessusClientData>"))

0 commit comments

Comments
 (0)