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 @@
11 app.templates.path = (doc, type, entry) ->
22 html = """<a href="#{doc.fullPath()}" class="_path-item _icon-#{doc.slug}">#{doc.name}</a>"""
33 html += """<a href="#{type.fullPath()}" class="_path-item">#{type.name}</a>""" if type
4− html += """<span class="_path-item">#{entry.name}</span>""" if entry
4+ html += """<span class="_path-item">#{$.escape entry.name}</span>""" if entry
55 html