Skip to content

Commit 45bb11b

Browse files
committed
Update APIFilter.php
Fix encoding URI parameter issue.
1 parent 0fad5a8 commit 45bb11b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/APIFilter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public static function filter(APIFilter $apiFilter, array $arr) {
189189
$defaultVal = $def[$paramIdx]->getDefault();
190190

191191
if (isset($arr[$name])) {
192-
$toBeFiltered = $arr[$name];
193-
$retVal[$noFIdx][$name] = $arr[$name];
192+
$toBeFiltered = urldecode($arr[$name]);
193+
$retVal[$noFIdx][$name] = $toBeFiltered;
194194

195195
if (isset($def[$optIdx]['filter-func'])) {
196196
$retVal[$filteredIdx][$name] = self::_applyCustomFilterFunc($def, $toBeFiltered);

0 commit comments

Comments
 (0)