Skip to content

Commit 333c734

Browse files
Ngô Quốc Đạtmichalsn
authored andcommitted
wip
Co-authored-by: Michal Sniatala <[email protected]>
1 parent 8617878 commit 333c734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Security/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private function getPostedToken(RequestInterface $request): ?string
313313
if ($request->hasHeader($this->config->headerName)) {
314314
$tokenValue = $request->header($this->config->headerName)->getValue();
315315

316-
return ($tokenValue !== '' && $tokenValue !== [] && is_string($tokenValue)) ? $tokenValue : null;
316+
return (is_string($tokenValue) && $tokenValue !== '') ? $tokenValue : null;
317317
}
318318

319319
$body = (string) $request->getBody();

0 commit comments

Comments
 (0)