Fix PUBLIC_ROUTES case-sensitivity bug in runAuth (strtolower path vs mixed-case routes)
This commit is contained in:
parent
906f1408fa
commit
bd913bb46d
1 changed files with 1 additions and 1 deletions
|
|
@ -463,7 +463,7 @@ function runAuth(): void {
|
|||
// Check if public route
|
||||
$isPublic = false;
|
||||
foreach (PUBLIC_ROUTES as $route) {
|
||||
if (str_contains($path, $route)) {
|
||||
if (str_contains($path, strtolower($route))) {
|
||||
$isPublic = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue