From: Maciej Tronowski Date: Wed, 2 Sep 2015 10:45:52 +0000 (+0200) Subject: proper escaping of file attributes in js templates X-Git-Tag: v1.1~28 X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=commitdiff_plain;h=d5cc9c8eb609649bb2a6993fcbf8c72b854507b1;p=qcg-portal.git proper escaping of file attributes in js templates --- 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 @@