In the event an import file isn't an msf_zip, pcapfile, and doesn't have a newline, bail.

git-svn-id: file:///home/svn/framework3/trunk@12465 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2011-04-29 04:16:42 +00:00
parent 07e02ce44a
commit 4053764f21
1 changed files with 1 additions and 0 deletions

View File

@ -2100,6 +2100,7 @@ class DBManager
end
di = data.index("\n")
raise DBImportError.new("Could not automatically determine file type") unless di
firstline = data[0, di]
@import_filedata ||= {}
if (firstline.index("<NeXposeSimpleXML"))