diff --git a/build/api/core/Request.php b/build/api/core/Request.php index 305861b..aa59a82 100755 --- a/build/api/core/Request.php +++ b/build/api/core/Request.php @@ -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);