yiisoft/yii — pull request #549 by ranvis (2012-03-24 11:29:58+00:00)
Title: #451 Fix CUrlRule::createUrl() error when $params contains an array.

Fix for `CUrlManager->createUrl()` with array values in `$param`.

For instance, `CUrlManager->createUrl("a",array("id"=>array("b"=>"c","d"=>"e")))` fails with error "urlencode() expects parameter 1 to be string, array given" at `CUrlRule->createUrl()`.

I first tried supporting array rule parameter like ``, which ended up just bringing complex to URL path.
This fix avoids error just by not applying the specific rule, and lets the caller use the default URL constructor.

Related: pull #506, issue #451