1
0
Fork 0

Fix for UNC Windows paths

Made isAbsolutePath recognize Windows UNC-style absolute paths starting with \\
pull/8042/head
Novicaine 2019-03-15 13:15:01 -05:00 committed by GitHub
parent 522ea033a3
commit 486b25fd30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ class Filesystem
*/ */
public function isAbsolutePath($path) public function isAbsolutePath($path)
{ {
return substr($path, 0, 1) === '/' || substr($path, 1, 1) === ':'; return substr($path, 0, 1) === '/' || substr($path, 1, 1) === ':' || substr($path,0,2) === '\\';
} }
/** /**