diff --git a/CHANGESLOG.md b/CHANGESLOG.md index 42232bc..b3820d7 100755 --- a/CHANGESLOG.md +++ b/CHANGESLOG.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + +## 3.0.1 - 2021-02-01 + +### Fixed + +- Router was generating error when faced with a empty path. + + + ## 3.0.0 - 2021-02-01 ### Fixed diff --git a/composer.json b/composer.json index e4804e6..fc20999 100755 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "library", "keywords": ["router"], "license": "MIT", - "version": "3.0.0", + "version": "3.0.1", "authors": [ { "name": "Adinan Cenci", diff --git a/src/Helper.php b/src/Helper.php index 672e7f5..fd50764 100755 --- a/src/Helper.php +++ b/src/Helper.php @@ -23,6 +23,9 @@ public static function isRelativePath($path) { $path = self::forwardSlash($path); + if ($path == '') { + return true; + } if ($path[0] == '/') { return false;