Skip to content

Commit 8838575

Browse files
Don't decode the filter url
Leave this to QueryString::fromString() method.
1 parent 4aa08e0 commit 8838575

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

application/controllers/ApiV1ChannelsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function indexAction(): void
4343
}
4444

4545
try {
46-
$filterRule = QueryString::fromString(rawurldecode(Url::fromRequest()->getQueryString()))
46+
$filterRule = QueryString::fromString(Url::fromRequest()->getQueryString())
4747
->on(
4848
QueryString::ON_CONDITION,
4949
function (Filter\Condition $condition) {

application/controllers/ApiV1ContactgroupsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function indexAction(): void
6161
$this->httpBadRequest('The given identifier is not a valid UUID');
6262
}
6363

64-
$filterStr = rawurldecode(Url::fromRequest()->getQueryString());
64+
$filterStr = Url::fromRequest()->getQueryString();
6565
if ($method !== 'GET' && $filterStr) {
6666
$this->httpBadRequest('Filter is only allowed for GET requests');
6767
}

application/controllers/ApiV1ContactsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function indexAction(): void
6666
$this->httpBadRequest('The given identifier is not a valid UUID');
6767
}
6868

69-
$filterStr = rawurldecode(Url::fromRequest()->getQueryString());
69+
$filterStr = Url::fromRequest()->getQueryString();
7070
if ($method !== 'GET' && $filterStr) {
7171
$this->httpBadRequest('Filter is only allowed for GET requests');
7272
}

0 commit comments

Comments
 (0)