Skip to content

Commit 2e698a1

Browse files
committed
urldecode URI keys as well as values. Fixes #1680
1 parent df38172 commit 2e698a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/URI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ public function setQuery(string $query)
760760
// URL Decode the value to protect
761761
// from double-encoding a URL.
762762
// Especially useful with the Pager.
763-
$parts[$key] = $this->decode($value);
763+
$parts[$this->decode($key)] = $this->decode($value);
764764
}
765765

766766
$this->query = $parts;

0 commit comments

Comments
 (0)