We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f9833 commit f267c11Copy full SHA for f267c11
lib/msf/core/db.rb
@@ -2972,10 +2972,10 @@ def import_filetype_detect(data)
2972
elsif (firstline.index("<scanJob>"))
2973
@import_filedata[:type] = "Retina XML"
2974
return :retina_xml
2975
- elsif (firstline.index("<get_reports_response status=\"200\" status_text=\"OK\">"))
+ elsif (firstline =~ /<get_reports_response status=['"]200['"] status_text=['"]OK['"]>/)
2976
@import_filedata[:type] = "OpenVAS XML"
2977
return :openvas_new_xml
2978
- elsif (firstline.index("<report id=\"") or firstline.index("<report id=\'"))
+ elsif (firstline =~ /<report id=['"]/)
2979
2980
2981
elsif (firstline.index("<NessusClientData>"))
0 commit comments