From 5098f315fd6968ced4eadbcb3cdc14f2caa70b91 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 2 Jul 2023 17:27:50 +0200 Subject: [PATCH] [ticket/17010] Use special chars decode to have valid URL with amp PHPBB3-17010 --- phpBB/phpbb/notification/method/webpush.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/notification/method/webpush.php b/phpBB/phpbb/notification/method/webpush.php index 5091c2823d..3298ee2e3c 100644 --- a/phpBB/phpbb/notification/method/webpush.php +++ b/phpBB/phpbb/notification/method/webpush.php @@ -122,7 +122,7 @@ class webpush extends messenger_base 'heading' => $this->config['sitename'], 'title' => strip_tags($notification->get_title()), 'text' => strip_tags($notification->get_reference()), - 'url' => $notification->get_url(), + 'url' => htmlspecialchars_decode($notification->get_url()), 'avatar' => $notification->get_avatar(), ]), 'notification_time' => time(),