8000 [FrameworkBundle] non-permanent redirect to unknown location with 404 by Tobion · Pull Request #5368 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] non-permanent redirect to unknown location with 404 #5368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 29, 2012
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixed '0' problem
  • Loading branch information
Tobion committed Aug 28, 2012
commit 3f8127ca1a87a430c08fcd27c4f38aac432f066f
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -67,7 +67,7 @@ public function redirectAction($route, $permanent = false)
*/
public function urlRedirectAction($path, $permanent = false, $scheme = null, $httpPort = 80, $httpsPort = 443)
{
if (!$path) {
if ('' == $path) {
return new Response(null, $permanent ? 410 : 404);
}

Expand Down
0