Fix ctype handling for body-less pages

#5515
bug/bundler_fix
Trevor Rosen 2015-06-22 14:17:29 -05:00
parent ee9830e2e9
commit d53067b0b7
No known key found for this signature in database
GPG Key ID: 255ADB7A642D3928
1 changed files with 9 additions and 1 deletions

View File

@ -142,8 +142,16 @@ module Msf::DBManager::Web
page.cookie = opts[:cookie] if opts[:cookie]
page.auth = opts[:auth] if opts[:auth]
page.mtime = opts[:mtime] if opts[:mtime]
page.ctype = opts[:ctype] if opts[:ctype]
if opts[:ctype].blank? || opts[:ctype] == [""]
page.ctype = ""
else
page.ctype = opts[:ctype]
end
page.location = opts[:location] if opts[:location]
msf_import_timestamps(opts, page)
page.save!