lib/ui/web/output_stream.rb in arachni-0.2.3 vs lib/ui/web/output_stream.rb in arachni-0.2.4

- old
+ new

@@ -60,17 +60,17 @@ # def each self << @instance.service.output - @@last_output ||= '' + @last_output ||= '' cnt = 0 if @buffer.empty? - yield @@last_output + yield @last_output else - @@last_output = '' + @last_output = '' end while( ( out = @buffer.pop ) && ( ( cnt += 1 ) < @lines ) ) type = out.keys[0] @@ -78,10 +78,10 @@ next if out.values[0].empty? icon = @icon_whitelist[type] || '' str = icon + CGI.escapeHTML( " #{out.values[0]}" ) + "<br/>" - @@last_output << str + @last_output << str yield str end self << @instance.service.output