@@ -87,7 +87,7 module RepositoriesHelper | |||
|
87 | 87 | if s = tree[file][:s] |
|
88 | 88 | style << ' folder' |
|
89 | 89 | path_param = to_path_param(@repository.relative_path(file)) |
|
90 | text = link_to(text, :controller => 'repositories', | |
|
90 | text = link_to(h(text), :controller => 'repositories', | |
|
91 | 91 | :action => 'show', |
|
92 | 92 | :id => @project, |
|
93 | 93 | :path => path_param, |
@@ -97,18 +97,18 module RepositoriesHelper | |||
|
97 | 97 | elsif c = tree[file][:c] |
|
98 | 98 | style << " change-#{c.action}" |
|
99 | 99 | path_param = to_path_param(@repository.relative_path(c.path)) |
|
100 | text = link_to(text, :controller => 'repositories', | |
|
100 | text = link_to(h(text), :controller => 'repositories', | |
|
101 | 101 | :action => 'entry', |
|
102 | 102 | :id => @project, |
|
103 | 103 | :path => path_param, |
|
104 | 104 | :rev => @changeset.identifier) unless c.action == 'D' |
|
105 | text << " - #{c.revision}" unless c.revision.blank? | |
|
105 | text << " - #{h(c.revision)}" unless c.revision.blank? | |
|
106 | 106 | text << ' (' + link_to('diff', :controller => 'repositories', |
|
107 | 107 | :action => 'diff', |
|
108 | 108 | :id => @project, |
|
109 | 109 | :path => path_param, |
|
110 | 110 | :rev => @changeset.identifier) + ') ' if c.action == 'M' |
|
111 | text << ' ' + content_tag('span', c.from_path, :class => 'copied-from') unless c.from_path.blank? | |
|
111 | text << ' ' + content_tag('span', h(c.from_path), :class => 'copied-from') unless c.from_path.blank? | |
|
112 | 112 | output << "<li class='#{style}'>#{text}</li>" |
|
113 | 113 | end |
|
114 | 114 | end |
General Comments 0
You need to be logged in to leave comments.
Login now