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

Update MediaObject.php, call to htmlspecialchars #24

Merged
merged 1 commit into from
Jan 5, 2018

Conversation

cceglia
Copy link
Contributor

@cceglia cceglia commented Jan 5, 2018

Updated the htmlspecialchars call, since the third parameter (charset) must be an empty string in order to activate autodetection (from http://php.net/manual/en/function.htmlspecialchars.php).

On PHP version 7.0.23-1~dotdeb+8.1, passing null as third parameter gives an Exception:

[2018-01-05 08:49:42] production.ERROR: htmlspecialchars(): charset `e_value' not supported, assuming utf-8 at /.../vendor/dereuromark/media-embed/src/MediaEmbed/Object/MediaObject.php:624

Updated the htmlspecialchars call, since the third parameter (charset) must be an empty string in order to activate autodetection (from http://php.net/manual/en/function.htmlentities.php).

On PHP version 7.0.23-1~dotdeb+8.1, passing null as third parameter gives back an Exception:
[2018-01-05 08:49:42] production.ERROR: htmlspecialchars(): charset `e_value' not supported, assuming utf-8 at /.../vendor/dereuromark/media-embed/src/MediaEmbed/Object/MediaObject.php:624
@dereuromark dereuromark merged commit dea3b26 into dereuromark:master Jan 5, 2018
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