cakephp/cakephp — pull request #429 by bigclick (2012-01-20 03:15:41+00:00)
Title: Check that $namedValue is not an array in _writeUrl

We had a condition where we needed a url to have the format

/users/index/conditions[User][group_id]:5

This needed to pass through to the $this->request->params['named'], it worked correctly but was throwing errors saying

rawurlencode() expects parameter 1 to be string, array given

The output in $this->request->params['named'] was

````
[named] => Array
(
[conditions] => Array
(
[User] => Array
(
[group_id] => 5
)

)

)
````

Checking that the input isn't an array works however I was also playing with checking for is_string but didn't know if it would break the passing of anything else through.