Explorar o código

http_build_query fix

Ziumin %!s(int64=13) %!d(string=hai) anos
pai
achega
de73de0259
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/Routing/Generator/UrlGenerator.php

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