Browse Source

Escape entry name in path bar

Thibaut 11 years ago
parent
commit
b33b17bedb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/templates/path_tmpl.coffee

+ 1 - 1
assets/javascripts/templates/path_tmpl.coffee

@@ -1,5 +1,5 @@
 app.templates.path = (doc, type, entry) ->
   html = """<a href="#{doc.fullPath()}" class="_path-item _icon-#{doc.slug}">#{doc.name}</a>"""
   html += """<a href="#{type.fullPath()}" class="_path-item">#{type.name}</a>""" if type
-  html += """<span class="_path-item">#{entry.name}</span>""" if entry
+  html += """<span class="_path-item">#{$.escape entry.name}</span>""" if entry
   html