lib/arachni/module/manager.rb in arachni-0.4.5.2 vs lib/arachni/module/manager.rb in arachni-0.4.6

- old
+ new

@@ -1,7 +1,7 @@ =begin - Copyright 2010-2013 Tasos Laskos <tasos.laskos@gmail.com> + Copyright 2010-2014 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 @@ -171,20 +171,20 @@ # def self.register_results( results ) on_register_results_blocks_raw.each { |block| block.call( results ) } unique = dedup( results ) - return 0 if unique.empty? + return results if unique.empty? # Don't allow multiple variations of the same audit-type issue, # only allow variations for recon modules. unique.each { |issue| issue_set << issue.unique_id if issue.audit? } on_register_results_blocks.each { |block| block.call( unique ) } - return 0 if !store? + return results if !store? unique.each { |issue| self.results << issue } - unique.size + results end def register_results( results ) self.class.register_results( results ) end