Browse Source

Fix for UNC Windows paths

Made isAbsolutePath recognize Windows UNC-style absolute paths starting with \\
Novicaine 6 years ago
parent
commit
486b25fd30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Util/Filesystem.php

+ 1 - 1
src/Composer/Util/Filesystem.php

@@ -440,7 +440,7 @@ class Filesystem
      */
     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) === '\\';
     }
 
     /**