mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 15:02:18 +00:00
Merge pull request #108 from skipperbent/development
Allow for default parameters (including A-Z, a-z, 0-9 and "-") when p…
This commit is contained in:
@@ -52,7 +52,7 @@ class RouterResource extends RouterEntry {
|
|||||||
|
|
||||||
$route = rtrim($this->url, '/') . '/{id?}/{action?}';
|
$route = rtrim($this->url, '/') . '/{id?}/{action?}';
|
||||||
|
|
||||||
$parameters = $this->parseParameters($route, $url, '[0-9]+?');
|
$parameters = $this->parseParameters($route, $url);
|
||||||
|
|
||||||
if($parameters !== null) {
|
if($parameters !== null) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user