Ver Fonte

[Routing] Fix missing a trailing slash on windows

Jordi Boggiano há 15 anos atrás
pai
commit
13d890c880
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Symfony/Components/Routing/Loader/XmlFileLoader.php

+ 1 - 1
src/Symfony/Components/Routing/Loader/XmlFileLoader.php

@@ -133,7 +133,7 @@ class XmlFileLoader extends FileLoader
     protected function validate($dom, $file)
     {
         $parts = explode('/', str_replace('\\', '/', __DIR__.'/schema/routing/routing-1.0.xsd'));
-        $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts) : '';
+        $drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
         $location = 'file:///'.$drive.implode('/', array_map('rawurlencode', $parts));
 
         $current = libxml_use_internal_errors(true);