Skip to content

Commit 861ac79

Browse files
author
Tod Beardsley
committed
Handle single quotes for OpenVAS import
1 parent 1bc90a6 commit 861ac79

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
@@ -2893,7 +2893,7 @@ def import_filetype_detect(data)
28932893
elsif (firstline.index("<get_reports_response status=\"200\" status_text=\"OK\">"))
28942894
@import_filedata[:type] = "OpenVAS XML"
28952895
return :openvas_new_xml
2896-
elsif (firstline.index("<report id=\""))
2896+
elsif (firstline.index("<report id=\"") or firstline.index("<report id=\'"))
28972897
@import_filedata[:type] = "OpenVAS XML"
28982898
return :openvas_new_xml
28992899
elsif (firstline.index("<NessusClientData>"))

0 commit comments

Comments
 (0)