Skip to content
New issue

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

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

Already on GitHub? # to your account

Use mb_* functions to handle serialization and unicode file paths #774

Merged
merged 1 commit into from
Feb 20, 2019
Merged

Use mb_* functions to handle serialization and unicode file paths #774

merged 1 commit into from
Feb 20, 2019

Conversation

ste93cry
Copy link
Collaborator

Q A
Branch? 2.0
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

This fixes #727 by using mb_* functions whenever possible. This is especially important while serializing the stacktrace and the frame arguments because if not encoded in UTF-8 the JSON serialization will fail. Also, Sentry server expects the data to be in that encoding anyway. I've also removed some conditional checks that verified if the mbstring extension was available since it's a requirement in the composer.json

@ste93cry ste93cry merged commit dee2230 into getsentry:master Feb 20, 2019
@ste93cry ste93cry deleted the fix/use-mbstring branch February 20, 2019 18:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mb_substr() should be used on strings, if available (2.0 and master branches)
3 participants