From 2e7d3b19c15ea4bfdfafa4e14919a168bc6fb965 Mon Sep 17 00:00:00 2001 From: Ziumin Date: Mon, 23 Apr 2012 10:56:52 +0300 Subject: [PATCH] http_build_query fix --- src/Symfony/Bundle/FrameworkBundle/HttpKernel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }