mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Don't add a . when there's no extension
This commit is contained in:
parent
e9e7bd649e
commit
6506a5b958
@ -99,7 +99,10 @@ class LostPasswordHandler extends RequestHandler
|
||||
public function passwordsent()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$email = Convert::raw2xml(rawurldecode($request->param('EmailAddress')) . '.' . $request->getExtension());
|
||||
$email = Convert::raw2xml(rawurldecode($request->param('EmailAddress')));
|
||||
if ($request->getExtension()) {
|
||||
$email = $email . '.' . Convert::raw2xml($request->getExtension());
|
||||
}
|
||||
|
||||
$message = _t(
|
||||
'SilverStripe\\Security\\Security.PASSWORDSENTTEXT',
|
||||
|
Loading…
x
Reference in New Issue
Block a user