Browse Source

Fix syntax and backslash escaping

Jordi Boggiano 6 years ago
parent
commit
8944627245
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) === ':' || substr($path,0,2) === '\\';
+        return substr($path, 0, 1) === '/' || substr($path, 1, 1) === ':' || substr($path, 0, 2) === '\\\\';
     }
 
     /**