Skip to content

Commit e5f4c55

Browse files
committed
改进路由分组的url有效性检查
1 parent b9fd06d commit e5f4c55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/think/route/RuleGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ protected function checkUrl(string $url): bool
265265
$str = $this->fullName;
266266
}
267267

268-
if ($str && 0 !== stripos($url, $str)) {
268+
if ($str && 0 !== stripos($url . '/', $str . '/')) {
269269
return false;
270270
}
271271
}

0 commit comments

Comments
 (0)