8000 bug #39716 [DependencyInjection] do not break when loading schemas fr… · symfony/symfony@e1b81d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1b81d5

Browse files
committed
bug #39716 [De 8000 pendencyInjection] 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

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($ 6007 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