From 486b25fd3015dc21df0524178d0ad279c91c8980 Mon Sep 17 00:00:00 2001 From: Novicaine Date: Fri, 15 Mar 2019 13:15:01 -0500 Subject: [PATCH] Fix for UNC Windows paths Made isAbsolutePath recognize Windows UNC-style absolute paths starting with \\ --- src/Composer/Util/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/Filesystem.php b/src/Composer/Util/Filesystem.php index 1903f1c8d..d9e83280b 100644 --- a/src/Composer/Util/Filesystem.php +++ b/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) === '\\'; } /**