Skip to content

Commit

Permalink
LYNX-455: Make sure cookie name in assertion ends with '=' to avoid c…
Browse files Browse the repository at this point in the history
…ookie name collision (#262)
  • Loading branch information
bl4de authored Jun 20, 2024
1 parent 56c42a8 commit 27fead0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function testPrivateSessionContentCookiePresentWhenSessionEnabled()
private function isCookieSet(array $setCookieHeader, string $cookieName): bool
{
return count(array_filter($setCookieHeader, function ($cookie) use ($cookieName) {
return str_starts_with($cookie, $cookieName);
return str_starts_with($cookie, $cookieName . '=');
})) > 0;
}

Expand Down

0 comments on commit 27fead0

Please sign in to comment.