X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/e43db7fd25798616ad38a959bd378bb765b9323c..a1c8309e4b3d8d5468c2defbc8bbae95633aff90:/src/phinde/LinkExtractor/Html.php diff --git a/src/phinde/LinkExtractor/Html.php b/src/phinde/LinkExtractor/Html.php index 7b987e3..299ed91 100644 --- a/src/phinde/LinkExtractor/Html.php +++ b/src/phinde/LinkExtractor/Html.php @@ -8,7 +8,7 @@ class Html { public function extract(\HTTP_Request2_Response $res) { - $url = $res->getEffectiveUrl(); + $url = Helper::removeAnchor($res->getEffectiveUrl()); $linkInfos = array(); @@ -61,7 +61,7 @@ class Html } } } - if ($href == '' || $href{0} == '#') { + if ($href == '' || $href[0] == '#') { //link on this page continue; }