Skip to content

Commit 1372edd

Browse files
committed
fix: lookup email domain directly after split
1 parent d28e7d6 commit 1372edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helper/UserDataHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function setEmail(string $email): bool
3131
) {
3232
$x = explode("@", $email, 2);
3333
// https://support.google.com/mail/thread/125577450/gmail-and-googlemail
34-
if (substr($x[1], -mb_strlen("googlemail.com")) == "googlemail.com") {
34+
if ($x[1] == "googlemail.com") {
3535
$x[1] = "gmail.com";
3636
}
3737
// https://gmail.googleblog.com/2008/03/2-hidden-ways-to-get-more-from-your.html

0 commit comments

Comments
 (0)