Skip to content

Commit 2827bad

Browse files
authored
Merge pull request phpbb#6762 from rxu/ticket/17454
[ticket/17454] Fix displaying emojis in sitename within webpush header
2 parents db70b3b + 7bf31e8 commit 2827bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpBB/phpbb/ucp/controller/webpush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private function get_notification_data(string $notification_data): string
244244
$this->user_loader->load_users($notification->users_to_query());
245245

246246
return json_encode([
247-
'heading' => $this->config['sitename'],
247+
'heading' => html_entity_decode($this->config['sitename'], ENT_QUOTES, 'UTF-8'),
248248
'title' => strip_tags(html_entity_decode($notification->get_title(), ENT_NOQUOTES, 'UTF-8')),
249249
'text' => strip_tags(html_entity_decode($notification->get_reference(), ENT_NOQUOTES, 'UTF-8')),
250250
'url' => htmlspecialchars_decode($notification->get_url()),

0 commit comments

Comments
 (0)