http_build_query fix
This commit is contained in:
parent
de73de0259
commit
2e7d3b19c1
@ -190,14 +190,14 @@ class HttpKernel extends BaseHttpKernel
|
|||||||
return $controller;
|
return $controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = http_build_query($attributes);
|
$path = http_build_query($attributes, '', '&');
|
||||||
$uri = $this->container->get('router')->generate('_internal', array(
|
$uri = $this->container->get('router')->generate('_internal', array(
|
||||||
'controller' => $controller,
|
'controller' => $controller,
|
||||||
'path' => $path ?: 'none',
|
'path' => $path ?: 'none',
|
||||||
'_format' => $this->container->get('request')->getRequestFormat(),
|
'_format' => $this->container->get('request')->getRequestFormat(),
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($queryString = http_build_query($query)) {
|
if ($queryString = http_build_query($query, '', '&')) {
|
||||||
$uri .= '?'.$queryString;
|
$uri .= '?'.$queryString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user