diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-01 20:17:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-01 20:17:45 +0000 |
commit | 521f4a6ddbc9eebe9ee6347a677f8d1a0ea6790f (patch) | |
tree | df488bf993181d91f76e5d6fa0dce19c62ea1438 /app | |
parent | 296b6aee5aac812d35bc32eaab246f33574d30e0 (diff) | |
download | redmine-521f4a6ddbc9eebe9ee6347a677f8d1a0ea6790f.tar.gz redmine-521f4a6ddbc9eebe9ee6347a677f8d1a0ea6790f.zip |
Fixed: auto-generated links corrupted when url contains & characters in the query string.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@690 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 550ce3c59..93f319997 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -177,7 +177,7 @@ module ApplicationHelper # finally textilize text @do_textilize ||= (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize") - text = @do_textilize ? auto_link(RedCloth.new(text, [:hard_breaks]).to_html) : simple_format(auto_link(h(text))) + text = @do_textilize ? RedCloth.new(auto_link(text), [:hard_breaks]).to_html : simple_format(auto_link(h(text))) end # Same as Rails' simple_format helper without using paragraphs |