Skip to content

Commit

Permalink
[Routing] fixed XML loader on Windows (there is no need to urlencode …
Browse files Browse the repository at this point in the history
…here as schemaValidate() takes a filename, not a URL)
  • Loading branch information
fabpot committed Oct 28, 2010
1 parent c448429 commit 7f8c540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/Loader/XmlFileLoader.php
Expand Up @@ -132,7 +132,7 @@ protected function validate(\DOMDocument $dom, $file)
{
$parts = explode('/', str_replace('\\', '/', __DIR__.'/schema/routing/routing-1.0.xsd'));
$drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
$location = 'file:///'.$drive.implode('/', array_map('rawurlencode', $parts));
$location = 'file:///'.$drive.implode('/', $parts);

$current = libxml_use_internal_errors(true);
if (!$dom->schemaValidate($location)) {
Expand Down

0 comments on commit 7f8c540

Please sign in to comment.