diff --git a/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Simple.pm b/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Simple.pm index 2d1cfe21099f3c89e1a05228ed2bff2794c4fb56..1a784daf4a6f222721d9b5ae52a849368bed8f53 100644 --- a/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Simple.pm +++ b/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Simple.pm @@ -460,7 +460,7 @@ sub hideCookie { my $class = shift; $class->lmLog( "$class: removing cookie", 'debug' ); my $tmp = lmHeaderIn( $apacheRequest, 'Cookie' ); - $tmp =~ s/$cookieName[^;]*;?//o; + $tmp =~ s/$cookieName[^,;]*[,;]?//o; lmSetHeaderIn( $apacheRequest, 'Cookie' => $tmp ); } @@ -502,7 +502,7 @@ sub goToPortal() { # Fetch $id sub fetchId() { my $t = lmHeaderIn( $apacheRequest, 'Cookie' ); - return ( $t =~ /$cookieName=([^; ]+);?/o ) ? $1 : 0; + return ( $t =~ /$cookieName=([^; ]+)/o ) ? $1 : 0; } # MAIN SUBROUTINE called by Apache (using PerlHeaderParserHandler option)