url encode email in password reset link

This commit is contained in:
Jakob Schrettenbrunner 2021-01-02 02:28:17 +00:00
parent 5f284dad1d
commit 44c668e208

View file

@ -57,7 +57,7 @@ class SendPasswordReset extends Notification implements ShouldQueue
return (new MailMessage)
->subject('Reset Password')
->line('You are receiving this email because we received a password reset request for your account.')
->action('Reset Password', url('/auth/password/reset/' . $this->token . '?email=' . $notifiable->email))
->action('Reset Password', url('/auth/password/reset/' . $this->token . '?email=' . urlencode($notifiable->email)))
->line('If you did not request a password reset, no further action is required.');
}
}