From a1f08e0d103e96268c5bbd1a83d0869d1bfba44d Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Thu, 3 Apr 2014 23:17:17 +0200 Subject: [PATCH] [FIX] action manager: use EncodeURIComponent instead of EncodeURI because of bad encoding of the ampersand in the secund (resulting in impossibility to encode 'Belgium Profit & Loss' for instance) bzr revid: sle@openerp.com-20140403211717-sb84ir2ts62yizzf --- addons/report/static/src/js/qwebactionmanager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/report/static/src/js/qwebactionmanager.js b/addons/report/static/src/js/qwebactionmanager.js index aa98b2c9c52..3910cab4dd7 100644 --- a/addons/report/static/src/js/qwebactionmanager.js +++ b/addons/report/static/src/js/qwebactionmanager.js @@ -33,8 +33,8 @@ openerp.report = function(instance) { report_url += "/" + action.context.active_ids.join(','); } } else { - report_url += "?options=" + encodeURI(JSON.stringify(action.data)); - report_url += "&context=" + encodeURI(JSON.stringify(action.context)); + report_url += "?options=" + encodeURIComponent(JSON.stringify(action.data)); + report_url += "&context=" + encodeURIComponent(JSON.stringify(action.context)); } if (action.report_type == 'qweb-html') {