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] Avoid json decoding exception trace args #21149

Merged
merged 2 commits into from
Sep 12, 2017
Merged

[5.5] Avoid json decoding exception trace args #21149

merged 2 commits into from
Sep 12, 2017

Conversation

themsaid
Copy link
Member

As reported in #21146

The exception trace might contain instances that will fail if passed to json_decode while rendering the response, this will cause an exception to be thrown preventing a proper response from being produced.

In this PR, we only render the file, line, function, class, and type from each trace, these values are always strings/integers while args might hold objects that are un-decodable.

@taylorotwell taylorotwell merged commit d12f1ed into laravel:5.5 Sep 12, 2017
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.

None yet

2 participants