lib: Fix Url paramter encoding if parameter is a Url object

fixes #10321
This commit is contained in:
Eric Lippmann 2015-11-03 17:16:00 +01:00
parent 1e35a17ec1
commit b5c8579d0e
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class UrlParams
protected function urlEncode($value)
{
return rawurlencode((string) $value);
return rawurlencode($value instanceof Url ? $value->getAbsoluteUrl() : (string) $value);
}
/**