Skip to content

Commit

Permalink
Revert "Revert "concat should check the input if escape or not using …
Browse files Browse the repository at this point in the history
…SafeBuffer concat method""

This reverts commit 4cee99a.

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
spastorino authored and jeremy committed May 23, 2010
1 parent 4cee99a commit 5353ab6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/rails_xss_helper.rb
Expand Up @@ -31,6 +31,15 @@ def link_to(*args, &block)

module ActionView
module Helpers
module TextHelper
def concat(string, unused_binding = nil)
if unused_binding
ActiveSupport::Deprecation.warn("The binding argument of #concat is no longer needed. Please remove it from your views and helpers.", caller)
end

output_buffer.concat(string)
end
end
module TagHelper
private
def content_tag_string_with_escaping(name, content, options, escape = true)
Expand Down

0 comments on commit 5353ab6

Please sign in to comment.