Skip to content

Commit

Permalink
fix(magic-links): fix email encoding on sent link (#1833)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe authored Aug 2, 2022
1 parent 3704d9f commit 8d4756c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-magic-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private static function generate_url( $user, $url = '' ) {
return \add_query_arg(
[
'action' => self::AUTH_ACTION,
'email' => $user->user_email,
'email' => urlencode( $user->user_email ),
'token' => $token_data['token'],
],
! empty( $url ) ? $url : \home_url()
Expand Down

0 comments on commit 8d4756c

Please sign in to comment.