From: patrick-scho Date: Sat, 29 Nov 2025 14:12:53 +0000 (+0100) Subject: do not replace absolute links X-Git-Url: https://gitweb.ps.run/ps-gitweb/commitdiff_plain/e894074b9768ff98e14874a71cc285f27c8b6504?ds=sidebyside do not replace absolute links --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 07e5359..ccbd12a 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -7259,7 +7259,7 @@ sub get_markdown { } } } - if ($_ =~ /(]href=")(.*?)"/) { + if ($_ =~ /(]href="[^/])(.*?)"/) { my $origcut = "".$2; my $testcut = "".$2; my $is_anchor = ($testcut =~ /^#/);