Skip to content

Commit

Permalink
[FIX] Theming Parameters: Improve inline parameters decoding
Browse files Browse the repository at this point in the history
See: SAP/less-openui5#23

BCP: 1880276569
CR-Id: 002075125900002498442018
Change-Id: I40644af9417128fbba940b874f0e5572067647ab
(cherry picked from commit ca3b448)
  • Loading branch information
matz3 committed Jul 3, 2018
1 parent b31742e commit cb51da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sap.ui.core/src/sap/ui/core/theming/Parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/thirdparty/URI', '../Element'],
// 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 " + sUrl);
}
Expand Down

0 comments on commit cb51da1

Please sign in to comment.