Skip to content

Commit

Permalink
Check cookie value if there's at least one, previously the condition …
Browse files Browse the repository at this point in the history
…was never true
  • Loading branch information
spaze committed Oct 20, 2024
1 parent e07b5a5 commit a856560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/tests/EasterEgg/CrLfUrlInjectionsTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class CrLfUrlInjectionsTest extends TestCase
Assert::same(IResponse::S204_NoContent, $this->response->getCode());
Assert::same('U WOT M8', $this->response->getReason());
Assert::count($cookies, $this->response->getCookie('crlfinjection'));
if ($cookies > 1) {
if ($cookies > 0) {
Assert::same('1337', $this->response->getCookie('crlfinjection')[0]->getValue());
}
} else {
Expand Down

0 comments on commit a856560

Please sign in to comment.