remove bad truthiness checks

truthy checks were used here, but you'll get
an empty hash which will be treated as true causing
the test to be invalid and allowing for errors further in the method

MSP-9972
bug/bundler_fix
David Maloney 2015-03-18 10:52:24 -05:00
parent e943cb550f
commit 3269817b29
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 3 additions and 3 deletions

View File

@ -141,9 +141,9 @@ module Rex
def report_web_page(&block)
return unless(in_issue && has_text)
return unless @state[:web_site]
return unless @state[:response_headers]
return unless @state[:uri]
return unless @state[:web_site].present?
return unless @state[:response_headers].present?
return unless @state[:uri].present?
web_page_info = {}
web_page_info[:web_site] = @state[:web_site]
web_page_info[:path] = @state[:uri].path