소스 검색

[Routing] Fix missing a trailing slash on windows

Jordi Boggiano 15 년 전
부모
커밋
13d890c880
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);