Browse Source

Url encoding for the route param added

tags/2.0.0-rc
Klimov Paul 10 years ago
parent
commit
8ac309849d
  1. 2
      framework/web/UrlManager.php

2
framework/web/UrlManager.php

@ -325,7 +325,7 @@ class UrlManager extends Component
return "$baseUrl/{$route}{$anchor}";
} else {
$url = "$baseUrl?{$this->routeParam}=$route";
$url = "$baseUrl?{$this->routeParam}=" . urlencode($route);
if (!empty($params) && ($query = http_build_query($params)) !== '') {
$url .= '&' . $query;
}

Loading…
Cancel
Save