diff --git a/lib/msf/core/db_manager/web.rb b/lib/msf/core/db_manager/web.rb index 414846be95..6d3773ba1b 100644 --- a/lib/msf/core/db_manager/web.rb +++ b/lib/msf/core/db_manager/web.rb @@ -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!