##// END OF EJS Templates
Fixed escaping issues in #textilizable with Rails 3.1....
Jean-Philippe Lang -
r8865:30282f20daec
parent child
Show More
@@ -306,7 +306,7 module ApplicationHelper
306 306 def principals_options_for_select(collection, selected=nil)
307 307 s = ''
308 308 if collection.include?(User.current)
309 s << content_tag('option', "<< #{l(:label_me)} >>", :value => User.current.id)
309 s << content_tag('option', "<< #{l(:label_me)} >>".html_safe, :value => User.current.id)
310 310 end
311 311 groups = ''
312 312 collection.sort.each do |element|
@@ -547,7 +547,7 module ApplicationHelper
547 547 while tag = tags.pop
548 548 parsed << "</#{tag}>"
549 549 end
550 parsed.html_safe
550 parsed
551 551 end
552 552
553 553 def parse_inline_attachments(text, project, obj, attr, only_path, options)
@@ -564,9 +564,9 module ApplicationHelper
564 564 if !desc.blank? && alttext.blank?
565 565 alt = " title=\"#{desc}\" alt=\"#{desc}\""
566 566 end
567 "src=\"#{image_url}\"#{alt}".html_safe
567 "src=\"#{image_url}\"#{alt}"
568 568 else
569 m.html_safe
569 m
570 570 end
571 571 end
572 572 end
@@ -618,10 +618,10 module ApplicationHelper
618 618 link_to(title.present? ? title.html_safe : h(page), url, :class => ('wiki-page' + (wiki_page ? '' : ' new')))
619 619 else
620 620 # project or wiki doesn't exist
621 all.html_safe
621 all
622 622 end
623 623 else
624 all.html_safe
624 all
625 625 end
626 626 end
627 627 end
@@ -786,7 +786,7 module ApplicationHelper
786 786 end
787 787 end
788 788 end
789 (leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}")).html_safe
789 (leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}"))
790 790 end
791 791 end
792 792
@@ -795,14 +795,15 module ApplicationHelper
795 795 def parse_sections(text, project, obj, attr, only_path, options)
796 796 return unless options[:edit_section_links]
797 797 text.gsub!(HEADING_RE) do
798 heading = $1
798 799 @current_section += 1
799 800 if @current_section > 1
800 801 content_tag('div',
801 802 link_to(image_tag('edit.png'), options[:edit_section_links].merge(:section => @current_section)),
802 803 :class => 'contextual',
803 :title => l(:button_edit_section)) + $1
804 :title => l(:button_edit_section)) + heading.html_safe
804 805 else
805 $1
806 heading
806 807 end
807 808 end
808 809 end
General Comments 0
You need to be logged in to leave comments. Login now