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 f267c11 commit 9768030Copy full SHA for 9768030
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 =~ /<get_reports_response status=['"]200['"] status_text=['"]OK['"]>/)
+ elsif (firstline.index(/<get_reports_response status=['"]200['"] status_text=['"]OK['"]>/))
2976
@import_filedata[:type] = "OpenVAS XML"
2977
return :openvas_new_xml
2978
- elsif (firstline =~ /<report id=['"]/)
+ elsif (firstline.index(/<report id=['"]/))
2979
2980
2981
elsif (firstline.index("<NessusClientData>"))
0 commit comments