##// END OF EJS Templates
Fixed: auto-generated links corrupted when url contains & characters in the query string....
Jean-Philippe Lang -
r679:521f4a6ddbc9
parent child
Show More
@@ -177,7 +177,7 module ApplicationHelper
177
177
178 # finally textilize text
178 # finally textilize text
179 @do_textilize ||= (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize")
179 @do_textilize ||= (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize")
180 text = @do_textilize ? auto_link(RedCloth.new(text, [:hard_breaks]).to_html) : simple_format(auto_link(h(text)))
180 text = @do_textilize ? RedCloth.new(auto_link(text), [:hard_breaks]).to_html : simple_format(auto_link(h(text)))
181 end
181 end
182
182
183 # Same as Rails' simple_format helper without using paragraphs
183 # Same as Rails' simple_format helper without using paragraphs
General Comments 0
You need to be logged in to leave comments. Login now