diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-10-04 23:27:31 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-10-04 23:27:31 +0300 |
commit | 557571b23b39e4f087cbddaa7afd5417ae11422a (patch) | |
tree | e37b34f27d52098732631453e49339624c51ebd2 /plugins/Monolog | |
parent | a2e369e10d0cdc314540b5d3e4fe0da08e6cc7c5 (diff) |
force using utf-8 as charset for htmlentities/htmlspecialchars (#12135)
Diffstat (limited to 'plugins/Monolog')
-rw-r--r-- | plugins/Monolog/Handler/WebNotificationHandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Monolog/Handler/WebNotificationHandler.php b/plugins/Monolog/Handler/WebNotificationHandler.php index 7b3098d315..5f0de1bb8c 100644 --- a/plugins/Monolog/Handler/WebNotificationHandler.php +++ b/plugins/Monolog/Handler/WebNotificationHandler.php @@ -37,7 +37,7 @@ class WebNotificationHandler extends AbstractProcessingHandler break; } - $message = $record['level_name'] . ': ' . htmlentities($record['message']); + $message = $record['level_name'] . ': ' . htmlentities($record['message'], ENT_COMPAT | ENT_HTML401, 'UTF-8'); $notification = new Notification($message); $notification->context = $context; |