diff --git a/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php b/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php index e103162844..5e839d44b6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php +++ b/src/Symfony/Bundle/FrameworkBundle/HttpKernel.php @@ -190,14 +190,14 @@ class HttpKernel extends BaseHttpKernel return $controller; } - $path = http_build_query($attributes); + $path = http_build_query($attributes, '', '&'); $uri = $this->container->get('router')->generate('_internal', array( 'controller' => $controller, 'path' => $path ?: 'none', '_format' => $this->container->get('request')->getRequestFormat(), )); - if ($queryString = http_build_query($query)) { + if ($queryString = http_build_query($query, '', '&')) { $uri .= '?'.$queryString; } diff --git a/src/Symfony/Component/DomCrawler/Form.php b/src/Symfony/Component/DomCrawler/Form.php index 8bdaa33ebf..c0d322fef2 100644 --- a/src/Symfony/Component/DomCrawler/Form.php +++ b/src/Symfony/Component/DomCrawler/Form.php @@ -141,7 +141,7 @@ class Form extends Link implements \ArrayAccess */ public function getPhpValues() { - $qs = http_build_query($this->getValues()); + $qs = http_build_query($this->getValues(), '', '&'); parse_str($qs, $values); return $values; @@ -159,7 +159,7 @@ class Form extends Link implements \ArrayAccess */ public function getPhpFiles() { - $qs = http_build_query($this->getFiles()); + $qs = http_build_query($this->getFiles(), '', '&'); parse_str($qs, $values); return $values; diff --git a/src/Symfony/Component/Routing/Generator/UrlGenerator.php b/src/Symfony/Component/Routing/Generator/UrlGenerator.php index f0e2a48518..b1be194ba8 100644 --- a/src/Symfony/Component/Routing/Generator/UrlGenerator.php +++ b/src/Symfony/Component/Routing/Generator/UrlGenerator.php @@ -146,7 +146,7 @@ class UrlGenerator implements UrlGeneratorInterface // add a query string if needed $extra = array_diff_key($originParameters, $variables, $defaults); - if ($extra && $query = http_build_query($extra)) { + if ($extra && $query = http_build_query($extra, '', '&')) { $url .= '?'.$query; }