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 e1b81d5

Browse filesBrowse files
committed
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 ------- acbafe8 do not break when loading schemas from network paths on Windows
2 parents 1dead9a + acbafe8 commit e1b81d5
Copy full SHA for e1b81d5

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.