Skip to content

Commit 2b900bf

Browse files
authored
Merge pull request #2 from subitosun/main
Fixed verification of valid Application-Key format
2 parents 2912159 + 4be4964 commit 2b900bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugin/Authentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function handleRequest(RequestInterface $request, callable $next, callabl
7272
$request = $request->withHeader('Authorization', $this->apikey);
7373

7474
if (null != $this->appkey) {
75-
if (!ctype_space($this->appkey)) {
75+
if (ctype_alnum($this->appkey)) {
7676
$request = $request->withHeader('Application-Key', $this->appkey);
7777
}
7878
}

0 commit comments

Comments
 (0)