1
0
Fork 0

windows remote path treats as remote now

pull/5887/head
Sergey Beresnev 2016-11-21 15:41:15 +08:00
parent de9f333ec6
commit 2717e115c8
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ class Filesystem
*/ */
public static function isLocalPath($path) 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) public static function getPlatformPath($path)