From b33b17bedb536e1b0859fcd5db1ce4668d743c97 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sun, 20 Jul 2014 11:57:49 -0400 Subject: [PATCH] Escape entry name in path bar --- assets/javascripts/templates/path_tmpl.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/templates/path_tmpl.coffee b/assets/javascripts/templates/path_tmpl.coffee index 68ec3d25..43996ee0 100644 --- a/assets/javascripts/templates/path_tmpl.coffee +++ b/assets/javascripts/templates/path_tmpl.coffee @@ -1,5 +1,5 @@ app.templates.path = (doc, type, entry) -> html = """#{doc.name}""" html += """#{type.name}""" if type - html += """#{entry.name}""" if entry + html += """#{$.escape entry.name}""" if entry html