Skip to content
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

[5.5] Bail when array is provided as key in Session::flash #21576

Merged
merged 3 commits into from
Oct 7, 2017
Merged

[5.5] Bail when array is provided as key in Session::flash #21576

merged 3 commits into from
Oct 7, 2017

Conversation

jakobjohansson
Copy link
Contributor

When someone (accidentally) provides an array as key using Session::flash(), the app breaks for users visiting the page until they have cleared their browser cache. It can be hard to identify the problem when there's no exception thrown.

This is my first PR and I don't know if it qualifies, but I thought I'd give it a shot. Feedback is much appreciated.

@Dylan-DPC-zz
Copy link

Dylan-DPC-zz commented Oct 7, 2017

Hey. It will be nice if next time you spot a bug you create an issue first so that people can test it out and confirm whether it is a bug or not. It is fine for this one 👍

@jakobjohansson
Copy link
Contributor Author

Of course, makes sense.

@taylorotwell taylorotwell merged commit abc8b7f into laravel:5.5 Oct 7, 2017
@taylorotwell
Copy link
Member

Changed it to just use a string type hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants