Skip to content

Minor issue - unneeded escape character shows up in Change Password email. #11514

@thrashcardiom

Description

@thrashcardiom

Module version(s) affected

5.2.0

Description

Template file silverstripe-framework/templates/Control/Email/ChangePasswordEmail.ss has an unneeded escape character in line 5:

...If you didn\'t change your password...

The escape character \ shows up in the recipient's received email.

How to reproduce

<p><%t SilverStripe\\Control\\ChangePasswordEmail_ss.HELLO 'Hi' %> $FirstName,</p>

<p>
	<%t SilverStripe\\Control\\ChangePasswordEmail_ss.CHANGEPASSWORDTEXT1 'You changed your password for' is 'for a url' %> $AbsoluteBaseURL.<br />
	<%t SilverStripe\\Control\\ChangePasswordEmail_ss.CHANGEPASSWORDFOREMAIL 'The password for account with email address {email} has been changed. **If you didn\'t change your password** please change your password using the link below' email=$Email %><br />
	<a href="Security/changepassword"><%t SilverStripe\\Control\\ChangePasswordEmail_ss.CHANGEPASSWORDTEXT3 'Change password' %></a

Possible Solution

No response

Additional Context

No response

Validations

  • Check that there isn't already an issue that reports the same bug
  • Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

PRs

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions