From 3f8127ca1a87a430c08fcd27c4f38aac432f066f Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Wed, 29 Aug 2012 01:07:28 +0200 Subject: [PATCH] fixed '0' problem --- .../Bundle/FrameworkBundle/Controller/RedirectController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php b/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php index 6de7ead08b..e9bdab8036 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php @@ -38,7 +38,7 @@ class RedirectController extends ContainerAware */ public function redirectAction($route, $permanent = false) { - if (!$route) { + if ('' == $route) { return new Response(null, $permanent ? 410 : 404); } @@ -67,7 +67,7 @@ class RedirectController extends ContainerAware */ public function urlRedirectAction($path, $permanent = false, $scheme = null, $httpPort = 80, $httpsPort = 443) { - if (!$path) { + if ('' == $path) { return new Response(null, $permanent ? 410 : 404); }