create-prisma-php-app 1.16.27 → 1.16.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -85,6 +85,12 @@ class AuthMiddleware
|
|
|
85
85
|
{
|
|
86
86
|
$pattern = strtolower($pattern);
|
|
87
87
|
$requestUri = strtolower(trim($requestUri));
|
|
88
|
+
|
|
89
|
+
// Handle the case where the requestUri is empty, which means home or "/"
|
|
90
|
+
if (empty($requestUri) || $requestUri === '/') {
|
|
91
|
+
$requestUri = '/';
|
|
92
|
+
}
|
|
93
|
+
|
|
88
94
|
$regex = "#^/?" . preg_quote($pattern, '#') . "(/.*)?$#";
|
|
89
95
|
return preg_match($regex, $requestUri);
|
|
90
96
|
}
|