From a17a6b55881453bbd02792e3f4797ab7e475de32 Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Mon, 28 May 2018 14:52:44 +0200 Subject: [PATCH] [FIX] Theming Parameters: Improve inline parameters decoding See: https://github.com/SAP/less-openui5/pull/23 BCP: 1880276569 CR-Id: 002075125900002498462018 Change-Id: I40644af9417128fbba940b874f0e5572067647ab (cherry picked from commit ca3b4482a521ff7f439e6faf772eccf0d82ad900) --- src/sap.ui.core/src/sap/ui/core/theming/Parameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sap.ui.core/src/sap/ui/core/theming/Parameters.js b/src/sap.ui.core/src/sap/ui/core/theming/Parameters.js index b94916fe8ee1..f26a914de531 100644 --- a/src/sap.ui.core/src/sap/ui/core/theming/Parameters.js +++ b/src/sap.ui.core/src/sap/ui/core/theming/Parameters.js @@ -138,7 +138,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/thirdparty/URI', '../Element', 'jque // decode only if necessary if (sParams.charAt(0) !== "{" && sParams.charAt(sParams.length - 1) !== "}") { try { - sParams = decodeURI(sParams); + sParams = decodeURIComponent(sParams); } catch (ex) { jQuery.sap.log.warning("Could not decode theme parameters URI from " + sStyleSheetUrl); }