##// END OF EJS Templates
HTML escape at parse_redmine_links() of app/helpers/application_helper.rb (#9252)...
Toshi MARUYAMA -
r7129:950d600f2260
parent child
Show More
@@ -633,7 +633,7 module ApplicationHelper
633 633 if prefix.nil? && sep == 'r'
634 634 # project.changesets.visible raises an SQL error because of a double join on repositories
635 635 if project && project.repository && (changeset = Changeset.visible.find_by_repository_id_and_revision(project.repository.id, identifier))
636 link = link_to("#{project_prefix}r#{identifier}", {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.revision},
636 link = link_to(h("#{project_prefix}r#{identifier}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.revision},
637 637 :class => 'changeset',
638 638 :title => truncate_single_line(changeset.comments, :length => 100))
639 639 end
@@ -683,7 +683,7 module ApplicationHelper
683 683 if project && project.repository && (changeset = Changeset.visible.find(:first, :conditions => ["repository_id = ? AND scmid LIKE ?", project.repository.id, "#{name}%"]))
684 684 link = link_to h("#{project_prefix}#{name}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.identifier},
685 685 :class => 'changeset',
686 :title => truncate_single_line(changeset.comments, :length => 100)
686 :title => truncate_single_line(h(changeset.comments), :length => 100)
687 687 end
688 688 when 'source', 'export'
689 689 if project && project.repository && User.current.allowed_to?(:browse_repository, project)
General Comments 0
You need to be logged in to leave comments. Login now