fixed '0' problem

This commit is contained in:
Tobias Schultze 2012-08-29 01:07:28 +02:00
parent 7bec46036a
commit 3f8127ca1a
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}