fix: api.core.Request (fix: now can use - in URI (but not usable for @path))

This commit is contained in:
xdrm-brackets 2017-12-10 23:32:58 +01:00
parent 0f03f1eeb6
commit f476bea431
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@
/* (1) Verification format general /* (1) Verification format general
---------------------------------------------------------*/ ---------------------------------------------------------*/
/* (1) If wrong format -> exit */ /* (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); return $this->error->set(Err::WrongPathModule);