Преглед на файлове

[FrameworkBundle] clean up Request before forwarding

Fabien Potencier преди 15 години
родител
ревизия
0da7295a9c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/Symfony/Bundle/FrameworkBundle/Controller/InternalController.php

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

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