Merge pull request #6762 from rxu/ticket/17454

[ticket/17454] Fix displaying emojis in sitename within webpush header
This commit is contained in:
Marc Alexander 2024-12-30 21:32:22 +01:00 committed by GitHub
commit 2827bad8d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -244,7 +244,7 @@ class webpush
$this->user_loader->load_users($notification->users_to_query());
return json_encode([
'heading' => $this->config['sitename'],
'heading' => html_entity_decode($this->config['sitename'], ENT_QUOTES, 'UTF-8'),
'title' => strip_tags(html_entity_decode($notification->get_title(), ENT_NOQUOTES, 'UTF-8')),
'text' => strip_tags(html_entity_decode($notification->get_reference(), ENT_NOQUOTES, 'UTF-8')),
'url' => htmlspecialchars_decode($notification->get_url()),