Handle single quotes for OpenVAS import

bug/bundler_fix
Tod Beardsley 2013-04-19 16:27:28 -05:00 committed by AverageSecurityGuy
parent e05763149a
commit f775a0bb01
1 changed files with 1 additions and 1 deletions

View File

@ -2975,7 +2975,7 @@ class DBManager
elsif (firstline.index("<get_reports_response status=\"200\" status_text=\"OK\">"))
@import_filedata[:type] = "OpenVAS XML"
return :openvas_new_xml
elsif (firstline.index("<report id=\""))
elsif (firstline.index("<report id=\"") or firstline.index("<report id=\'"))
@import_filedata[:type] = "OpenVAS XML"
return :openvas_new_xml
elsif (firstline.index("<NessusClientData>"))