Fix errors in the router
This commit is contained in:
@@ -33,6 +33,7 @@ class Router
|
||||
public function match($url)
|
||||
{
|
||||
$url = htmlspecialchars($url);
|
||||
$url = substr_replace($url, '', 0, 1);
|
||||
|
||||
foreach ($this->routes as $route => $params) {
|
||||
if (preg_match($route, $url, $matches)) {
|
||||
|
||||
Reference in New Issue
Block a user