зеркало из https://github.com/mozilla/pjs.git
Bug 121419 - If multiple cookies exist, the least significant is assigned.
2xr = bbaetz Also fixes Duplicate Bug 165685 When switching from no cookiepath to using cookiepath, old cookie gets in the way
This commit is contained in:
Родитель
6429b5c681
Коммит
7277250e06
|
@ -1064,7 +1064,9 @@ if (defined $ENV{"HTTP_COOKIE"}) {
|
|||
foreach my $pair (split(/;/, $ENV{"HTTP_COOKIE"})) {
|
||||
$pair = trim($pair);
|
||||
if ($pair =~ /^([^=]*)=(.*)$/) {
|
||||
$::COOKIE{$1} = $2;
|
||||
if (!exists($::COOKIE{$1})) {
|
||||
$::COOKIE{$1} = $2;
|
||||
}
|
||||
} else {
|
||||
$::COOKIE{$pair} = "";
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче