1
0
Fork 0

Fix handling of protocol paths like phar://

pull/1760/head
Jordi Boggiano 2013-04-02 11:31:43 +02:00
parent 59c4df5ba3
commit 6401b6aa46
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ class Filesystem
$path = strtr($path, '\\', '/');
$prefix = '';
if (preg_match('|^(([a-z]:)?/)|i', $path, $match)) {
if (preg_match('{^((?:[0-9a-z]+://)?(?:[a-z]:)?/)}i', $path, $match)) {
$prefix = $match[1];
$path = substr($path, strlen($prefix));
}