treesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorpatrick-scho2025-11-29 15:12:53 +0100
committerpatrick-scho2025-11-29 15:12:53 +0100
commite894074b9768ff98e14874a71cc285f27c8b6504 (patch)
treed92931daaae8979daa6402b9ba7df72fa6cff248
parent554ee2efd7d9669b64c548e696a2dc92342464c3 (diff)
downloadps-gitweb-e894074b9768ff98e14874a71cc285f27c8b6504.tar.gz
ps-gitweb-e894074b9768ff98e14874a71cc285f27c8b6504.zip
do not replace absolute links
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
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 ($_ =~ /(<a[^>]href=")(.*?)"/) {
+ if ($_ =~ /(<a[^>]href="[^/])(.*?)"/) {
my $origcut = "".$2;
my $testcut = "".$2;
my $is_anchor = ($testcut =~ /^#/);