safety fix

This commit is contained in:
2026-02-07 17:26:26 -08:00
parent 9feccf9eaa
commit f679d0b20e

View File

@@ -75,7 +75,7 @@ class Router {
foreach ($this->routes as $key => $value) {
// Check if key contains a curly bracket, if not continue. We already checked above.
if (!strpos($key, '{')) continue;
if (strpos($key, '{') === false) continue;
// Remove everything after the curly bracket, from key
$keyPath = substr($key, 0, strpos($key, '{'));