Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxwell Salzberg <maxwell@joindiaspora.com>2011-07-13 05:15:56 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-07-22 01:32:09 +0400
commitdf62f58156c7f501f6916ecde900845a798fdf6e (patch)
treeea554be0958b1bd66506c19d6671ef243d660213 /lib
parent1ba49caeca3ab4a24bc1ae83c9e219b7f203f736 (diff)
fixed the safe_buffer issues
Diffstat (limited to 'lib')
-rw-r--r--lib/diaspora/taggable.rb2
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