Skip to content
Snippets Groups Projects
Commit 3fae2c2b authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #19031 TIME 0:45 GHE - Notification planificateur warning PHP | Convert...

FIX #19031 TIME 0:45 GHE - Notification planificateur warning PHP | Convert special characters to HTML entities within document title
parent c2976c6c
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,7 @@ function sendNotifications(array $args) ...@@ -181,7 +181,7 @@ function sendNotifications(array $args)
$url = $args['applicationUrl'] . 'dist/#/documents/' . $recipientNotification['main_document_id']; $url = $args['applicationUrl'] . 'dist/#/documents/' . $recipientNotification['main_document_id'];
$document = DocumentModel::getById(['id' => $recipientNotification['main_document_id'], 'select' => ['title']]); $document = DocumentModel::getById(['id' => $recipientNotification['main_document_id'], 'select' => ['title']]);
$row = str_replace('{{object}}', $document['title'], $lang['notificationTemplateRow']); $row = str_replace('{{object}}', htmlspecialchars($document['title']), $lang['notificationTemplateRow']);
$row = str_replace('{{link}}', $url, $row); $row = str_replace('{{link}}', $url, $row);
$rows .= $row . "\n"; $rows .= $row . "\n";
$recipientNotificationIds[] = $recipientNotification['id']; $recipientNotificationIds[] = $recipientNotification['id'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment