1
0
Fork 0

Merge pull request #5887 from sectus/windows_remote_paths

windows remote path treats as remote now
pull/5897/head
Jordi Boggiano 2016-11-21 09:40:38 +01:00 committed by GitHub
commit 0762aa1e2c
1 changed files with 1 additions and 1 deletions

View File

@ -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)