Skip to content

Commit ea75fc6

Browse files
authored
fix(Router): reset filter info before get defined filters (#3592)
fix(Router): reset filter info before get defined filters
1 parent 4fc3088 commit ea75fc6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

system/Router/Router.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class Router implements RouterInterface
127127
* The filter info from Route Collection
128128
* if the matched route should be filtered.
129129
*
130-
* @var string
130+
* @var string|null
131131
*/
132132
protected $filterInfo;
133133

@@ -175,6 +175,9 @@ public function handle(string $uri = null)
175175
// Decode URL-encoded string
176176
$uri = urldecode($uri);
177177

178+
// Restart filterInfo
179+
$this->filterInfo = null;
180+
178181
if ($this->checkRoutes($uri))
179182
{
180183
if ($this->collection->isFiltered($this->matchedRoute[0]))

0 commit comments

Comments
 (0)