Skip to content

Commit

Permalink
html entities around firstname in emails to prevent html from showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Nov 12, 2024
1 parent 2c3ad8d commit ce1d207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Domain/Notifications/Services/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function processMentions(string $content, string $module, int $moduleId,
$links = $dom->getElementsByTagName('a');

$author = $this->userRepository->getUser($authorId);
$authorName = $author['firstname'] ?? $this->language->__('label.team_mate');
$authorName = htmlentities($author['firstname']) ?? $this->language->__('label.team_mate');

for ($i = 0; $i < $links->count(); $i++) {
$taggedUser = $links->item($i)->getAttribute('data-tagged-user-id');
Expand Down

0 comments on commit ce1d207

Please sign in to comment.