Commit 0eb72419 authored by Xavier Guimard's avatar Xavier Guimard

Closes #313716 : Cookie recover failed with AXIS client


git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_0_9@624 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 87b4250d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment