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