From f476bea431506a179dd93580176fe396ba461701 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 10 Dec 2017 23:32:58 +0100 Subject: [PATCH] fix: api.core.Request (fix: now can use - in URI (but not usable for @path)) --- build/api/core/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);