There was an error while loading. Please reload this page.
1 parent e9bc894 commit 5a53402Copy full SHA for 5a53402
1 file changed
tests/system/Session/Handlers/Database/AbstractHandlerTestCase.php
@@ -126,10 +126,11 @@ public function testGC(): void
126
127
public function testGCRejectsNonInt(): void
128
{
129
- $handler = $this->getInstance();
+ $handler = $this->getInstance();
130
+ $malicious = 'malicious; DROP TABLE sessions; --';
131
132
$this->expectException(TypeError::class);
- $handler->gc('malicious; DROP TABLE sessions; --'); // @phpstan-ignore argument.type
133
+ $handler->gc($malicious); // @phpstan-ignore argument.type
134
}
135
136
public function testGCWithZero(): void
0 commit comments