fix: api.core.Request (fix: now can use - in URI (but not usable for @path))
This commit is contained in:
parent
0f03f1eeb6
commit
f476bea431
|
@ -220,7 +220,7 @@
|
|||
/* (1) Verification format general
|
||||
---------------------------------------------------------*/
|
||||
/* (1) If wrong format -> exit */
|
||||
if( !preg_match('@^\w+(\/\w+)*\/?$@', $uri, $matches) )
|
||||
if( !preg_match('@^[\w-]+(\/[\w-]+)*\/?$@', $uri, $matches) )
|
||||
return $this->error->set(Err::WrongPathModule);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue