Skip to content

Commit

Permalink
Bugfix encode values for GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Feb 1, 2024
1 parent 4d8eac0 commit 52a57bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
if (isFirstParameter && parameters.href.indexOf("?") == -1) {
parameterGlue = '?';
}
parameters.href += parameterGlue + object.name + "=" + object.value;
parameters.href += parameterGlue + object.name + "=" + encodeURIComponent(object.value);
} else if (!_request.isDefined(parameters[object.name])) {
// The [] at the end of the parameter name means we have a multi-select or multi-checkbox
// without dedicated indexes for each option like tx_news_pi1[search][articletype][]
Expand Down

0 comments on commit 52a57bf

Please sign in to comment.