Merge pull request #5887 from sectus/windows_remote_paths
windows remote path treats as remote nowpull/5897/head
commit
0762aa1e2c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue