소스 검색

[DomCrawler] fixed DomCrawler::parseUri()

Fabien Potencier 15 년 전
부모
커밋
e09f730243
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Components/DomCrawler/Crawler.php

+ 1 - 1
src/Symfony/Components/DomCrawler/Crawler.php

@@ -613,7 +613,7 @@ class Crawler extends \SplObjectStorage
 
     if ('/' !== substr($path, -1))
     {
-      $path = dirname($path);
+      $path = substr($path, 0, strrpos($path, '/') + 1);
     }
 
     return array(preg_replace('#^(.*?//[^/]+)\/.*$#', '$1', $uri), $path);