Skip to content

Commit

Permalink
Merge branch 'hotfix/pb-1078'
Browse files Browse the repository at this point in the history
  • Loading branch information
vonPiernik committed Jun 6, 2024
2 parents 2fa041b + e4658ee commit e0dd348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/process-purchase.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ function edd_purchase_form_validate_guest_user() {
// Check email
if ( $guest_email && strlen( $guest_email ) > 0 ) {
// Validate email
if ( ! is_email( $guest_email ) ) {
if ( ! is_email( $guest_email ) || filter_var($guest_email, FILTER_VALIDATE_EMAIL) === false ) {
// Invalid email
edd_set_error( 'email_invalid', __( 'Invalid email', 'easy-digital-downloads' ) );
} else {
Expand Down

0 comments on commit e0dd348

Please sign in to comment.