|
@@ 176-177 (lines=2) @@
|
| 173 |
|
{ |
| 174 |
|
if (substr($this->request['route'], -1) == '*') { |
| 175 |
|
$pos = strpos($this->request['route'], '*'); |
| 176 |
|
if (substr($this->router->route->getUrl(), 0, $pos) == substr($this->request['route'], 0, $pos) && isset($this->request['params'])) { |
| 177 |
|
return true; |
| 178 |
|
} |
| 179 |
|
} |
| 180 |
|
if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) { |
|
@@ 180-183 (lines=4) @@
|
| 177 |
|
return true; |
| 178 |
|
} |
| 179 |
|
} |
| 180 |
|
if (preg_match($regex, $this->router->route->getUrl(), $this->request['parameters'])) { |
| 181 |
|
array_shift($this->request['parameters']); |
| 182 |
|
return true; |
| 183 |
|
} |
| 184 |
|
return false; |
| 185 |
|
} |
| 186 |
|
|