Skip to content

Commit

Permalink
Merge pull request #11338 from rubo77/password-br
Browse files Browse the repository at this point in the history
sharebymail: Add linebreak before password
  • Loading branch information
MorrisJobke authored Oct 3, 2018
2 parents 213d43f + a3849e6 commit 71072a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/sharebymail/lib/ShareByMailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ protected function sendPassword(IShare $share, $password) {
$emailTemplate->addHeader();
$emailTemplate->addHeading($this->l->t('Password to access »%s«', [$filename]), false);
$emailTemplate->addBodyText(htmlspecialchars($htmlBodyPart), $plainBodyPart);
$emailTemplate->addBodyText($this->l->t('It is protected with the following password: %s', [$password]));
$emailTemplate->addBodyText($this->l->t('It is protected with the following password:'));
$emailTemplate->addBodyText($password);

// The "From" contains the sharers name
$instanceName = $this->defaults->getName();
Expand Down Expand Up @@ -600,7 +601,8 @@ protected function sendPasswordToOwner(IShare $share, $password) {
$emailTemplate->addHeader();
$emailTemplate->addHeading($this->l->t('Password to access »%s«', [$filename]), false);
$emailTemplate->addBodyText($bodyPart);
$emailTemplate->addBodyText($this->l->t('This is the password: %s', [$password]));
$emailTemplate->addBodyText($this->l->t('This is the password:'));
$emailTemplate->addBodyText($password);
$emailTemplate->addBodyText($this->l->t('You can choose a different password at any time in the share dialog.'));
$emailTemplate->addFooter();

Expand Down

0 comments on commit 71072a0

Please sign in to comment.