ソースを参照

http_build_query fix

Ziumin 13 年 前
コミット
2e7d3b19c1
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/Symfony/Bundle/FrameworkBundle/HttpKernel.php

+ 2 - 2
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;
         }