Skip to content

Commit aa5a0ab

Browse files
committed
fix(share): Don't print twice the same information
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
1 parent 5af0d13 commit aa5a0ab

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

apps/sharebymail/lib/ShareByMailProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,7 @@ protected function sendEmail(IShare $share, array $emails): void {
354354
}
355355

356356
$emailTemplate->addBodyText(
357-
htmlspecialchars($text . ' ' . $this->l->t('Click the button below to open it.')),
358-
$text
357+
$this->l->t('Click the button below to open it.')
359358
);
360359

361360
$emailTemplate->addBodyButton(

lib/private/Share20/DefaultShareProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,9 +1522,9 @@ protected function sendUserShareMail(
15221522
}
15231523

15241524
$emailTemplate->addBodyText(
1525-
htmlspecialchars($text . ' ' . $l->t('Click the button below to open it.')),
1526-
$text
1525+
$l->t('Click the button below to open it.')
15271526
);
1527+
15281528
$emailTemplate->addBodyButton(
15291529
$l->t('Open »%s«', [$filename]),
15301530
$link

0 commit comments

Comments
 (0)