Merge pull request #5887 from sectus/windows_remote_paths

windows remote path treats as remote now
main
Jordi Boggiano 8 years ago committed by GitHub
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…
Cancel
Save