浏览代码

[FrameworkBundle] clean up Request before forwarding

Fabien Potencier 14 年之前
父节点
当前提交
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);