We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8617878 commit 333c734Copy full SHA for 333c734
system/Security/Security.php
@@ -313,7 +313,7 @@ private function getPostedToken(RequestInterface $request): ?string
313
if ($request->hasHeader($this->config->headerName)) {
314
$tokenValue = $request->header($this->config->headerName)->getValue();
315
316
- return ($tokenValue !== '' && $tokenValue !== [] && is_string($tokenValue)) ? $tokenValue : null;
+ return (is_string($tokenValue) && $tokenValue !== '') ? $tokenValue : null;
317
}
318
319
$body = (string) $request->getBody();
0 commit comments