From 2717e115c86929321ec62dea46cc0ee363ad4e6f Mon Sep 17 00:00:00 2001 From: Sergey Beresnev Date: Mon, 21 Nov 2016 15:41:15 +0800 Subject: [PATCH] windows remote path treats as remote now --- 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 2ac6a54fe..899e342cd 100644 --- a/src/Composer/Util/Filesystem.php +++ b/src/Composer/Util/Filesystem.php @@ -477,7 +477,7 @@ class Filesystem */ public static function isLocalPath($path) { - return (bool) preg_match('{^(file://|/|/?[a-z]:[\\\\/]|\.\.[\\\\/]|[a-z0-9_.-]+[\\\\/])}i', $path); + return (bool) preg_match('{^(file://(?!//)|/(?!/)|/?[a-z]:[\\\\/]|\.\.[\\\\/]|[a-z0-9_.-]+[\\\\/])}i', $path); } public static function getPlatformPath($path)