Hanlder: remove ALL cookies and not just the first that match

This commit is contained in:
Clément Oudot 2010-03-11 11:05:41 +00:00
parent 936a7552c7
commit bf5c2616c3

View File

@ -867,7 +867,7 @@ sub hideCookie {
my $class = shift;
$class->lmLog( "$class: removing cookie", 'debug' );
my $tmp = lmHeaderIn( $apacheRequest, 'Cookie' );
$tmp =~ s/$cookieName(?:http)?[^,;]*[,;]?//o;
$tmp =~ s/$cookieName(?:http)?[^,;]*[,;]?//og;
lmSetHeaderIn( $apacheRequest, 'Cookie' => $tmp );
}