Преглед изворни кода

Fix for UNC Windows paths

Made isAbsolutePath recognize Windows UNC-style absolute paths starting with \\
Novicaine пре 6 година
родитељ
комит
486b25fd30
1 измењених фајлова са 1 додато и 1 уклоњено
  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) === '\\';
     }
 
     /**