-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
RedirectController parameters pop #30639
Comments
Hey there, Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue. Thanks! |
Hi Dries, I thought I already identified the source of the bug in my post. What exactly do you need to re-open this issue? |
It doesn't seems likely that you need to call |
Ok, I posted the issue on the Laracasts Forum. As @snapey is saying, since the That's why I suggested a PR to fix the code in |
Description:
Since I upgraded to Laravel 6, the
Route::redirect
helper is throwing the error:Steps To Reproduce:
On a fresh Laravel install, add these routes:
And add this binding in the
RouteServiceProvider
:Now visiting
test.laravel.test/old
will throw an error.Source of the bug:
The
status
anddestination
parameters of the RedirectController should not be retrieved usingpop()
:This is the dump of the
$parameters
with theusername
binding:So
$status = null
and$destination = 302
.Now I know this is probably not a common scenario but
pop()
should be replaced with something like$parameters['status']
and$parameters['destination']
to avoid any bug.Would you accept a PR to change this? Or am I missing something?
The text was updated successfully, but these errors were encountered: