Merge pull request #2274 from evazion/xss/pool-gallery
Fix XSS in pool names in /pools/gallery page.
This commit is contained in:
@@ -27,7 +27,7 @@ class PostPresenter < Presenter
|
||||
if options[:pool]
|
||||
html << %{<p class="desc">}
|
||||
html << %{<a href="/pools/#{options[:pool].id}">}
|
||||
html << options[:pool].pretty_name.truncate(80)
|
||||
html << h(options[:pool].pretty_name.truncate(80))
|
||||
html << %{</a>}
|
||||
html << %{</p>}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user