Fix isRelativePath() bug

This commit is contained in:
crazywhalecc
2022-03-29 02:06:42 +08:00
committed by Jerry Ma
parent 127466e546
commit 9bfa3ede20

View File

@@ -163,6 +163,6 @@ class DataProvider
*/ */
public static function isRelativePath($path) public static function isRelativePath($path)
{ {
return strlen($path) > 0 && $path[0] === '/'; return strlen($path) > 0 && $path[0] !== '/';
} }
} }