Permalink
Browse files

html_escape already handles nil

  • Loading branch information...
1 parent 16c4cb0 commit 61c5b4a9f6b953dd3f027b1a24c5526771bf8968 @spastorino spastorino committed Jan 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/output_safety_helper.rb
@@ -28,7 +28,7 @@ def raw(stringish)
# # => "<p>foo</p><br /><p>bar</p>"
#
def safe_join(array, sep=$,)
- sep = ERB::Util.html_escape(sep || "")
+ sep = ERB::Util.html_escape(sep)
array.map { |i| ERB::Util.html_escape(i) }.join(sep).html_safe
end

0 comments on commit 61c5b4a

Please sign in to comment.