From e894074b9768ff98e14874a71cc285f27c8b6504 Mon Sep 17 00:00:00 2001
From: patrick-scho
Date: Sat, 29 Nov 2025 15:12:53 +0100
Subject: do not replace absolute links
---
gitweb/gitweb.perl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 =~ /^#/);
--
cgit v1.2.3