Merge pull request #2957 from pterodactyl/fix/password-reset-mail

URL encode mail address in password reset link
This commit is contained in:
Dane Everitt 2021-01-03 17:15:50 -08:00 committed by GitHub
commit b352c04685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.');
}
}