History

Fix escaping of doc types in the sidebar

Thibaut Courouble committed 9 years ago

Commit fbf0c581 parent 61930281 file · +1 −1Browse files

Unified · Split

assets/javascripts/templates/sidebar_tmpl.coffee+1−1
@@ -14,7 +14,7 @@ templates.sidebarDoc = (doc, options = {}) -> · 13 unmodified lines
1414 link + "</span></a>"
1515
1616 templates.sidebarType = (type) ->
17− """<a href="#{type.fullPath()}" class="_list-item _list-dir" data-slug="#{type.slug}" tabindex="-1"><span class="_list-arrow"></span><span class="_list-count">#{type.count}</span><span class="_list-text">#{type.name}</span></a>"""
17+ """<a href="#{type.fullPath()}" class="_list-item _list-dir" data-slug="#{type.slug}" tabindex="-1"><span class="_list-arrow"></span><span class="_list-count">#{type.count}</span><span class="_list-text">#{$.escape type.name}</span></a>"""
1818
1919 templates.sidebarEntry = (entry) ->
2020 """<a href="#{entry.fullPath()}" class="_list-item _list-hover" tabindex="-1">#{$.escape entry.name}</a>"""

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t