KEYCLOAK-4480 Fix re-encoding of query params in keycloak.js after redirect

This commit is contained in:
Stian Thorgersen 2017-04-21 13:29:46 +02:00
parent e54c1d7de1
commit e6486ab1c1

View file

@ -1228,7 +1228,7 @@
break;
default:
if (responseMode != 'query' || !handleQueryParam(param, queryParams[param], oauth)) {
oauth.newUrl += (oauth.newUrl.indexOf('?') == -1 ? '?' : '&') + param + '=' + queryParams[param];
oauth.newUrl += (oauth.newUrl.indexOf('?') == -1 ? '?' : '&') + param + '=' + encodeURIComponent(queryParams[param]);
}
break;
}