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

Catch json_encode errors #14

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Catch json_encode errors #14

wants to merge 18 commits into from

Conversation

ulkoalex
Copy link

@ulkoalex ulkoalex commented Jan 20, 2018

test.css.txt
Catch json_encode errors, like Malformed UTF-8 characters, possibly incorrectly encoded (e.g. broken encoding in content CSS rule, example attached)

Without checking if json_encode ran successfully further execution logic breaks e.g. $output will be false, and foreach will trigger E_WARNING level error

@ulkoalex ulkoalex force-pushed the master branch 2 times, most recently from c6e827b to 1dae65d Compare January 20, 2018 23:32
@ulkoalex ulkoalex mentioned this pull request Mar 6, 2023
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.

2 participants