Skip to content

Commit f907a89

Browse files
committed
Bugfix
1 parent 06a4fcf commit f907a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/RewriteLinks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private function rewrite(string $content): string
4343
for ($i = 0; $i < count($matches[0]); ++$i) {
4444
$url = $matches[2][$i];
4545
$testUrl = parse_url($url);
46-
if ($testUrl['host'] !== $remoteUrl['host']) {
46+
if (empty($testUrl['host']) || $testUrl['host'] !== $remoteUrl['host']) {
4747
continue;
4848
}
4949
if (preg_match('@/page/(.*)@si', $testUrl['path'], $urlMatch)) {

0 commit comments

Comments
 (0)