History

Escape entry name in path bar

Thibaut committed 12 years ago

Commit b33b17b1 parent 636fc8c1 file · +1 −1Browse files

Unified · Split

assets/javascripts/templates/path_tmpl.coffee+1−1
@@ -1,5 +1,5 @@
1app.templates.path = (doc, type, entry) ->1app.templates.path = (doc, type, entry) ->
2 html = """<a href="#{doc.fullPath()}" class="_path-item _icon-#{doc.slug}">#{doc.name}</a>"""2 html = """<a href="#{doc.fullPath()}" class="_path-item _icon-#{doc.slug}">#{doc.name}</a>"""
3 html += """<a href="#{type.fullPath()}" class="_path-item">#{type.name}</a>""" if type3 html += """<a href="#{type.fullPath()}" class="_path-item">#{type.name}</a>""" if type
4 html += """<span class="_path-item">#{entry.name}</span>""" if entry4 html += """<span class="_path-item">#{$.escape entry.name}</span>""" if entry
5 html5 html