We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c19be4 commit 05dd9eeCopy full SHA for 05dd9ee
tools/links/links.php
@@ -1154,12 +1154,20 @@ public function mustUseCurl(TestableUrl $testableUrl): bool
1154
1155
public function isExcludedUrl(TestableUrl $testableUrl): bool
1156
{
1157
- $url = self::formatUrl($testableUrl->getSolvedUrl());
+ $url = $testableUrl->getUrl();
1158
foreach ($this->exclusionTests['url'] as $test) {
1159
if ($test($url, $testableUrl->getFile())) {
1160
return true;
1161
}
1162
1163
+ $solvedUrl = self::formatUrl($testableUrl->getSolvedUrl());
1164
+ if ($url !== $solvedUrl) {
1165
+ foreach ($this->exclusionTests['url'] as $test) {
1166
+ if ($test($solvedUrl, $testableUrl->getFile())) {
1167
+ return true;
1168
+ }
1169
1170
1171
return false;
1172
1173
0 commit comments