lib/arachni/audit_store.rb in arachni-0.4.1.3 vs lib/arachni/audit_store.rb in arachni-0.4.2

- old
+ new

@@ -1,7 +1,7 @@ =begin - Copyright 2010-2012 Tasos Laskos <tasos.laskos@gmail.com> + Copyright 2010-2013 Tasos Laskos <tasos.laskos@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -213,11 +213,10 @@ # def prepare_options( options ) new_options = {} options = options.to_hash - options['url'] = options['url'].to_s options.each_pair do |key, val| case key when 'redundant' new_options[key.to_s] = {} val.each do |regexp, counter| @@ -228,11 +227,12 @@ new_options[key.to_s] = [] val.each { |regexp| new_options[key.to_s] << regexp.to_s } when 'cookies' next if !val - new_options[key.to_s] = val.inject( {} ){ |h, c| h.merge!( c.simple ) } + new_options[key.to_s] = + val.inject( {} ){ |h, c| h.merge!( c.simple ) } else new_options[key.to_s] = val end end @@ -250,10 +250,10 @@ # # @return [Array<Issue>] new array of Issue instances # with populated {Issue#variations} # def prepare_variations( issues ) - variation_keys = %w(injected id regexp regexp_match headers response opts) + variation_keys = %w(injected id regexp regexp_match headers response opts remarks) new_issues = {} issues.each do |issue| __id = issue.hash new_issues[__id] ||= issue