BUGFIX: Encode special characters when sending workflow action

This commit is contained in:
Bruno Roemers
2021-06-08 23:48:24 +02:00
parent f85a5e65ad
commit bb2892edd8

View File

@@ -265,11 +265,13 @@ export class RequestService {
if (isNotEmpty(body) && typeof body === 'object') {
Object.keys(body)
.forEach((param) => {
const paramValue = `${param}=${body[param]}`;
const encodedParam = encodeURIComponent(param);
const encodedBody = encodeURIComponent(body[param]);
const paramValue = `${encodedParam}=${encodedBody}`;
queryParams = isEmpty(queryParams) ? queryParams.concat(paramValue) : queryParams.concat('&', paramValue);
});
}
return encodeURI(queryParams);
return queryParams;
}
/**