From eb26e896255844f5f1f544dd392aeb77ad84dadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Flod=C3=A9n?= Date: Sat, 23 Jun 2012 12:31:55 +0300 Subject: [PATCH] [FrameworkBundle] Fix built-in server when using query params in paths $_SERVER['REQUEST_URI'] will contain the query params so is_file will fail. Change it to use $_SERVER['SCRIPT_NAME'] instead which only contains the relative filename of the the script. --- src/Symfony/Bundle/FrameworkBundle/Resources/config/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/config/router.php b/src/Symfony/Bundle/FrameworkBundle/Resources/config/router.php index fb833cc578..e55c81c844 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/config/router.php +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/config/router.php @@ -21,7 +21,7 @@ * @author: Albert Jessurum */ -if (is_file($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $_SERVER['REQUEST_URI'])) { +if (is_file($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $_SERVER['SCRIPT_NAME'])) { return false; }