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 ee9830e commit d53067bCopy full SHA for d53067b
lib/msf/core/db_manager/web.rb
@@ -142,8 +142,16 @@ def report_web_page(opts)
142
page.cookie = opts[:cookie] if opts[:cookie]
143
page.auth = opts[:auth] if opts[:auth]
144
page.mtime = opts[:mtime] if opts[:mtime]
145
- page.ctype = opts[:ctype] if opts[:ctype]
+
146
147
+ if opts[:ctype].blank? || opts[:ctype] == [""]
148
+ page.ctype = ""
149
+ else
150
+ page.ctype = opts[:ctype]
151
+ end
152
153
page.location = opts[:location] if opts[:location]
154
155
msf_import_timestamps(opts, page)
156
page.save!
157
0 commit comments