Skip to content

Commit 79aaefb

Browse files
committed
fix: empty string should mean except only baseURL
The URI path '' means the baseURL. So ['except' => ''] should mean that except for the baseURL only.
1 parent 2ad0864 commit 79aaefb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Filters/Filters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,8 @@ private function pathApplies(string $uri, $paths)
553553
*/
554554
private function checkExcept(string $uri, $paths): bool
555555
{
556-
// empty path does not match anything
557-
if (empty($paths)) {
556+
// empty array does not match anything
557+
if ($paths === []) {
558558
return false;
559559
}
560560

0 commit comments

Comments
 (0)