Skip to content

Commit b352c04

Browse files
authored
Merge pull request pterodactyl#2957 from pterodactyl/fix/password-reset-mail
URL encode mail address in password reset link
2 parents 53d1b30 + 44c668e commit b352c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Notifications/SendPasswordReset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function toMail($notifiable)
5757
return (new MailMessage)
5858
->subject('Reset Password')
5959
->line('You are receiving this email because we received a password reset request for your account.')
60-
->action('Reset Password', url('/auth/password/reset/' . $this->token . '?email=' . $notifiable->email))
60+
->action('Reset Password', url('/auth/password/reset/' . $this->token . '?email=' . urlencode($notifiable->email)))
6161
->line('If you did not request a password reset, no further action is required.');
6262
}
6363
}

0 commit comments

Comments
 (0)