do not break when loading schemas from network paths on Windows
This commit is contained in:
parent
426bf9640a
commit
acbafe889d
@ -614,6 +614,8 @@ class XmlFileLoader extends FileLoader
|
|||||||
array_shift($parts);
|
array_shift($parts);
|
||||||
$locationstart = 'phar:///';
|
$locationstart = 'phar:///';
|
||||||
}
|
}
|
||||||
|
} elseif ('\\' === \DIRECTORY_SEPARATOR && 0 === strpos($location, '\\\\')) {
|
||||||
|
$locationstart = '';
|
||||||
}
|
}
|
||||||
$drive = '\\' === \DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
|
$drive = '\\' === \DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
|
||||||
$location = $locationstart.$drive.implode('/', array_map('rawurlencode', $parts));
|
$location = $locationstart.$drive.implode('/', array_map('rawurlencode', $parts));
|
||||||
|
Reference in New Issue
Block a user