mirror of
https://github.com/netzbegruenung/circles.git
synced 2024-05-11 07:36:07 +02:00
Make sure the share email only ships sane HTML
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
0257b1969a
commit
34c17bb403
|
@ -248,9 +248,9 @@ class FileSharingBroadcaster implements IBroadcaster {
|
|||
$emailTemplate->addHeader();
|
||||
$emailTemplate->addHeading($subject, false);
|
||||
$emailTemplate->addBodyText(
|
||||
$text . "\n " . $this->l10n->t('Click the button below to open it.'), $text
|
||||
htmlspecialchars($text) . '<br>' . htmlspecialchars($this->l10n->t('Click the button below to open it.')), $text
|
||||
);
|
||||
$emailTemplate->addBodyButton($this->l10n->t('Open »%s«', [$fileName]), $link);
|
||||
$emailTemplate->addBodyButton($this->l10n->t('Open »%s«', [htmlspecialchars($fileName)]), $link);
|
||||
|
||||
return $emailTemplate;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue