Skip to content

Commit 44b1c15

Browse files
committed
TUrlManager: urldecode pathInfo before assigning to variables. Fixes usage of "array" parameters like ?ids[]=xxx
1 parent c67b417 commit 44b1c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/Web/TUrlManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function constructUrl($serviceID, $serviceParam, $getItems, $encodeAmpers
124124
public function parseUrl()
125125
{
126126
$request = $this->getRequest();
127-
$pathInfo = trim($request->getPathInfo(), '/');
127+
$pathInfo = urldecode(trim($request->getPathInfo(), '/'));
128128
if (($request->getUrlFormat() === THttpRequestUrlFormat::Path ||
129129
$request->getUrlFormat() === THttpRequestUrlFormat::HiddenPath) &&
130130
$pathInfo !== '') {

0 commit comments

Comments
 (0)