From 7bf31e816543a6e4cf38812c57309589fe9bd531 Mon Sep 17 00:00:00 2001 From: rxu Date: Mon, 16 Dec 2024 00:30:40 +0700 Subject: [PATCH] [ticket/17454] Fix displaying emojis in sitename within webpush header PHPBB-17454 --- phpBB/phpbb/ucp/controller/webpush.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/ucp/controller/webpush.php b/phpBB/phpbb/ucp/controller/webpush.php index 313965db63..50d3eb3739 100644 --- a/phpBB/phpbb/ucp/controller/webpush.php +++ b/phpBB/phpbb/ucp/controller/webpush.php @@ -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()),