From 339b28167fe06c6a1bf46042c67a9fd6225bb6ac Mon Sep 17 00:00:00 2001 From: pstoellberger Date: Fri, 28 Jun 2013 18:13:36 +0200 Subject: [PATCH] make sure dimension is encoded during table menu calls --- js/saiku/views/Table.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/saiku/views/Table.js b/js/saiku/views/Table.js index 01030714d..33c102957 100644 --- a/js/saiku/views/Table.js +++ b/js/saiku/views/Table.js @@ -97,7 +97,7 @@ var Table = Backbone.View.extend({ var dimsel = {}; var used_levels = []; - self.workspace.query.action.get("/axis/" + axis + "/dimension/" + d, { + self.workspace.query.action.get("/axis/" + axis + "/dimension/" + encodeURIComponent(d), { success: function(response, model) { dimsel = model; }, @@ -184,10 +184,10 @@ var Table = Backbone.View.extend({ } return { callback: function(key, options) { - var url = '/axis/' + axis + '/dimension/' + d; + var url = '/axis/' + axis + '/dimension/' + encodeURIComponent(d); var children = false; if (key.indexOf("children") > 0) { - url = '/axis/' + axis + '/dimension/' + d + "/children"; + url = '/axis/' + axis + '/dimension/' + encodeURIComponent(d) + "/children"; children = true; } if (children) {