Prechádzať zdrojové kódy

[FrameworkBundle] clean up Request before forwarding

Fabien Potencier 14 rokov pred
rodič
commit
0da7295a9c

+ 1 - 0
src/Symfony/Bundle/FrameworkBundle/Controller/InternalController.php

@@ -34,6 +34,7 @@ class InternalController extends Controller
         $request = $this['request'];
         $request = $this['request'];
         $attributes = $request->attributes;
         $attributes = $request->attributes;
 
 
+        unset($attributes['path'], $attributes['controller']);
         if ('none' !== $path)
         if ('none' !== $path)
         {
         {
             parse_str($path, $tmp);
             parse_str($path, $tmp);