Commit 8ac30984 by Klimov Paul

Url encoding for the route param added

parent 984bb987
...@@ -325,7 +325,7 @@ class UrlManager extends Component ...@@ -325,7 +325,7 @@ class UrlManager extends Component
return "$baseUrl/{$route}{$anchor}"; return "$baseUrl/{$route}{$anchor}";
} else { } else {
$url = "$baseUrl?{$this->routeParam}=$route"; $url = "$baseUrl?{$this->routeParam}=" . urlencode($route);
if (!empty($params) && ($query = http_build_query($params)) !== '') { if (!empty($params) && ($query = http_build_query($params)) !== '') {
$url .= '&' . $query; $url .= '&' . $query;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment