]> source.dussan.org Git - redmine.git/commitdiff
Rails3: use String#html_safe for parse_inline_attachments() at ApplicationHelper.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 11:14:58 +0000 (11:14 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 11:14:58 +0000 (11:14 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6485 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index b9173cfd21460ac5fe724c69d589fb5382c6c8a0..9d2c0e8dd80d8d678e73c9fbb54baae324ea4f2c 100644 (file)
@@ -535,9 +535,9 @@ module ApplicationHelper
           if !desc.blank? && alttext.blank?
             alt = " title=\"#{desc}\" alt=\"#{desc}\""
           end
-          "src=\"#{image_url}\"#{alt}"
+          "src=\"#{image_url}\"#{alt}".html_safe
         else
-          m
+          m.html_safe
         end
       end
     end