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 a63457f commit be07d9cCopy full SHA for be07d9c
system/Security/Security.php
@@ -348,7 +348,9 @@ private function getPostedToken(RequestInterface $request): ?string
348
return $tokenValue;
349
}
350
351
- if ($request->hasHeader($this->config->headerName) && ! empty($request->header($this->config->headerName)->getValue())) {
+ if ($request->hasHeader($this->config->headerName)
352
+ && $request->header($this->config->headerName)->getValue() !== ''
353
+ && $request->header($this->config->headerName)->getValue() !== []) {
354
return $request->header($this->config->headerName)->getValue();
355
356
0 commit comments