8000 do not break when loading schemas from network paths on Windows · symfony/symfony@acbafe8 · GitHub
[go: up one dir, main page]

Skip to content

Commit acbafe8

Browse files
committed
do not break when loading schemas from network paths on Windows
1 parent 426bf96 commit acbafe8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ public function validateSchema(\DOMDocument $dom)
614614
array_shift($parts);
615615
$locationstart = 'phar:///';
616616
}
617+
} elseif ('\\' === \DIRECTORY_SEPARATOR && 0 === strpos($location, '\\\\')) {
618+
$locationstart = '';
617619
}
618620
$drive = '\\' === \DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
619621
$location = $locationstart.$drive.implode('/', array_map('rawurlencode', $parts));

0 commit comments

Comments
 (0)
0