Skip to content

Commit

Permalink
[Rails3] Default escaping in views
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Collins committed May 12, 2011
1 parent 8ec5edb commit 186834d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def process_config
@processor.process_config(RubyParser.new.parse(File.read("#@path/config/gems.rb")))
end

if File.exists? "#@path/vendor/plugins/rails_xss"
if File.exists? "#@path/vendor/plugins/rails_xss" or OPTIONS[:rails3]
tracker.config[:escape_html] = true
warn "[Notice] Escaping HTML by default"
end
Expand Down

0 comments on commit 186834d

Please sign in to comment.