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 06a4fcf commit f907a89Copy full SHA for f907a89
Parser/RewriteLinks.php
@@ -43,7 +43,7 @@ private function rewrite(string $content): string
43
for ($i = 0; $i < count($matches[0]); ++$i) {
44
$url = $matches[2][$i];
45
$testUrl = parse_url($url);
46
- if ($testUrl['host'] !== $remoteUrl['host']) {
+ if (empty($testUrl['host']) || $testUrl['host'] !== $remoteUrl['host']) {
47
continue;
48
}
49
if (preg_match('@/page/(.*)@si', $testUrl['path'], $urlMatch)) {
0 commit comments