Skip to content

Commit f70ba7e

Browse files
Merge pull request #1 from todb-r7/bug/pr1736-fix-db-import
Handle single quotes for OpenVAS import
2 parents 1bc90a6 + 861ac79 commit f70ba7e

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)