diff --git a/classes/Audits/Internal/Utilities.php b/classes/Audits/Internal/Utilities.php index 6a4a692..de44c79 100644 --- a/classes/Audits/Internal/Utilities.php +++ b/classes/Audits/Internal/Utilities.php @@ -181,7 +181,7 @@ static function checkPage(string $id, string $pageID): void $counter = 0; foreach ($links as $link) { $linkLocation = trim($link->getAttribute('href')); - if (strlen($linkLocation) > 0 && strpos($linkLocation, 'javascript:') !== 0 && strpos($linkLocation, 'mailto:') !== 0) { + if (strlen($linkLocation) > 0 && strpos($linkLocation, 'javascript:') !== 0 && strpos($linkLocation, 'mailto:') !== 0 && strpos($linkLocation, '#') !== 0) { $counter++; $linkID = md5($linkLocation . '-' . $counter); $shortURL = self::getShortURL($data['u'], $linkLocation);