]> source.dussan.org Git - redmine.git/commitdiff
Fix: Inline image links broken in rev 690.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 2 Sep 2007 15:06:29 +0000 (15:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 2 Sep 2007 15:06:29 +0000 (15:06 +0000)
TODO: Fix urls with &

git-svn-id: http://redmine.rubyforge.org/svn/trunk@698 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 93f319997fa4cc27b9f7a8ade3cce6ff4c43814d..550ce3c59898476e9dde48cb51cd48efacf20d99 100644 (file)
@@ -177,7 +177,7 @@ module ApplicationHelper
 
     # finally textilize text
     @do_textilize ||= (Setting.text_formatting == 'textile') && (ActionView::Helpers::TextHelper.method_defined? "textilize")
-    text = @do_textilize ? RedCloth.new(auto_link(text), [:hard_breaks]).to_html : simple_format(auto_link(h(text)))
+    text = @do_textilize ? auto_link(RedCloth.new(text, [:hard_breaks]).to_html) : simple_format(auto_link(h(text)))
   end
   
   # Same as Rails' simple_format helper without using paragraphs