From 865194c311ea3ca79f3ca0613364e80b89e5fb59 Mon Sep 17 00:00:00 2001 From: lian Date: Tue, 31 Mar 2015 14:56:58 +0800 Subject: [PATCH] [repo] use escapejs instead of safe --- seahub/templates/repo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seahub/templates/repo.html b/seahub/templates/repo.html index 42db22169f..824ad49258 100644 --- a/seahub/templates/repo.html +++ b/seahub/templates/repo.html @@ -1392,7 +1392,7 @@ function sortDirent() { var loading_icon = ''; // cur_path: will be updated after reqDirdata -var cur_path = "{{ path|safe }}"; {# safe is for ''', '&' included in path #} +var cur_path = "{{ path|escapejs}}"; // '.dir-link' click handler function dirlinkClick() {