Fix existing usages
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
350e38396f
commit
339e320064
|
@ -404,7 +404,7 @@ class ShareByMailProvider implements IShareProvider {
|
|||
$text = $this->l->t('%s shared »%s« with you.', [$initiatorDisplayName, $filename]);
|
||||
|
||||
$emailTemplate->addBodyText(
|
||||
$text . ' ' . $this->l->t('Click the button below to open it.'),
|
||||
htmlspecialchars($text . ' ' . $this->l->t('Click the button below to open it.')),
|
||||
$text
|
||||
);
|
||||
$emailTemplate->addBodyButton(
|
||||
|
@ -476,7 +476,7 @@ class ShareByMailProvider implements IShareProvider {
|
|||
$emailTemplate->setSubject($this->l->t('Password to access »%s« shared to you by %s', [$filename, $initiatorDisplayName]));
|
||||
$emailTemplate->addHeader();
|
||||
$emailTemplate->addHeading($this->l->t('Password to access »%s«', [$filename]), false);
|
||||
$emailTemplate->addBodyText($htmlBodyPart, $plainBodyPart);
|
||||
$emailTemplate->addBodyText(htmlspecialchars($htmlBodyPart), $plainBodyPart);
|
||||
$emailTemplate->addBodyText($this->l->t('It is protected with the following password: %s', [$password]));
|
||||
|
||||
// The "From" contains the sharers name
|
||||
|
|
|
@ -321,12 +321,12 @@ class LostController extends Controller {
|
|||
$emailTemplate->addHeading($this->l10n->t('Password reset'));
|
||||
|
||||
$emailTemplate->addBodyText(
|
||||
$this->l10n->t('Click the following button to reset your password. If you have not requested the password reset, then ignore this email.'),
|
||||
htmlspecialchars($this->l10n->t('Click the following button to reset your password. If you have not requested the password reset, then ignore this email.')),
|
||||
$this->l10n->t('Click the following link to reset your password. If you have not requested the password reset, then ignore this email.')
|
||||
);
|
||||
|
||||
$emailTemplate->addBodyButton(
|
||||
$this->l10n->t('Reset your password'),
|
||||
htmlspecialchars($this->l10n->t('Reset your password')),
|
||||
$link,
|
||||
false
|
||||
);
|
||||
|
|
|
@ -735,7 +735,7 @@ class Manager implements IManager {
|
|||
$text = $l->t('%s shared »%s« with you.', [$initiatorDisplayName, $filename]);
|
||||
|
||||
$emailTemplate->addBodyText(
|
||||
$text . ' ' . $l->t('Click the button below to open it.'),
|
||||
htmlspecialchars($text . ' ' . $l->t('Click the button below to open it.')),
|
||||
$text
|
||||
);
|
||||
$emailTemplate->addBodyButton(
|
||||
|
|
Loading…
Reference in New Issue