Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit acbafe8

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

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.