bug #39716 [DependencyInjection] do not break when loading schemas from network paths on Windows (xabbuh)
This PR was merged into the 4.4 branch.
Discussion
----------
[DependencyInjection] do not break when loading schemas from network paths on Windows
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #24090
| License | MIT
| Doc PR |
Commits
-------
acbafe889d
do not break when loading schemas from network paths on Windows
This commit is contained in:
commit
e1b81d513e
@ -614,6 +614,8 @@ class XmlFileLoader extends FileLoader
|
||||
array_shift($parts);
|
||||
$locationstart = 'phar:///';
|
||||
}
|
||||
} elseif ('\\' === \DIRECTORY_SEPARATOR && 0 === strpos($location, '\\\\')) {
|
||||
$locationstart = '';
|
||||
}
|
||||
$drive = '\\' === \DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
|
||||
$location = $locationstart.$drive.implode('/', array_map('rawurlencode', $parts));
|
||||
|
Reference in New Issue
Block a user