lib/arachni/trainer.rb in arachni-1.2.1 vs lib/arachni/trainer.rb in arachni-1.3
- old
+ new
@@ -125,21 +125,18 @@
return
end
[ :forms, :links ].each { |type| has_new_elements ||= has_new?( incoming_page, type ) }
+ incoming_page.paths.each do |path|
+ @framework.push_to_url_queue( path )
+ end
+
if has_new_elements
@trainings_per_url[incoming_page.url] += 1
notify_on_new_page incoming_page
@framework.push_to_page_queue( incoming_page )
-
- # If the page is pushed, paths will be extracted eventually, if not, we
- # need to do it now.
- else
- incoming_page.paths.each do |path|
- @framework.push_to_url_queue( path )
- end
end
incoming_page.clear_cache
print_debug 'Training complete.'