diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm
index a94c59977..315c80ad3 100644
--- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm
+++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm
@@ -44,7 +44,7 @@ sub googleEndPoint {
# Dirty XML parse
# (searching for https://www.google.com/accounts/o8/ud)
my $tmp = $response->decoded_content;
- if ( $tmp =~ m#(\S+)#i ) {
+ if ( $tmp =~ m#(\S+)#mi ) {
$googleEndPoint = $1;
}
else {