From d5cc9c8eb609649bb2a6993fcbf8c72b854507b1 Mon Sep 17 00:00:00 2001 From: Maciej Tronowski Date: Wed, 2 Sep 2015 12:45:52 +0200 Subject: [PATCH] proper escaping of file attributes in js templates --- filex/static/filex/filex.js | 2 +- filex/templates/filex/source.js.html | 20 ++++++++++---------- filex/templates/filex/upload.js.html | 14 +++++++------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/filex/static/filex/filex.js b/filex/static/filex/filex.js index 011f47c..9f34b5e 100644 --- a/filex/static/filex/filex.js +++ b/filex/static/filex/filex.js @@ -234,7 +234,7 @@ $(function(){ // used in selectize callbacks var view = this, - optionTemplate = _.template('
<%= host %>
<%= path %>
'); + optionTemplate = _.template('
<%- host %>
<%- path %>
'); this.$('#host-selector').selectize({ optgroupField: 'group', diff --git a/filex/templates/filex/source.js.html b/filex/templates/filex/source.js.html index 9457298..451d270 100644 --- a/filex/templates/filex/source.js.html +++ b/filex/templates/filex/source.js.html @@ -14,24 +14,24 @@ diff --git a/filex/templates/filex/upload.js.html b/filex/templates/filex/upload.js.html index 3f1f786..cefe181 100644 --- a/filex/templates/filex/upload.js.html +++ b/filex/templates/filex/upload.js.html @@ -173,7 +173,7 @@