diff options
author | Maxwell Salzberg <maxwell@joindiaspora.com> | 2011-07-13 05:15:56 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-22 01:32:09 +0400 |
commit | df62f58156c7f501f6916ecde900845a798fdf6e (patch) | |
tree | ea554be0958b1bd66506c19d6671ef243d660213 /lib | |
parent | 1ba49caeca3ab4a24bc1ae83c9e219b7f203f736 (diff) |
fixed the safe_buffer issues
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diaspora/taggable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diaspora/taggable.rb b/lib/diaspora/taggable.rb index 0c706a8eb..73f9d4b54 100644 --- a/lib/diaspora/taggable.rb +++ b/lib/diaspora/taggable.rb @@ -42,7 +42,7 @@ module Diaspora return text if opts[:plain_text] text = ERB::Util.h(text) unless opts[:no_escape] regex = /(^|\s)#(#{VALID_TAG_BODY})/ - form_message = text.gsub(regex) do |matched_string| + form_message = text.to_str.gsub(regex) do |matched_string| "#{$~[1]}<a href=\"/tags/#{$~[2]}\" class=\"tag\">##{$~[2]}</a>" end form_message.html_safe |