]> gitweb.ps.run Git - ps-gitweb/commitdiff
do not replace absolute links
authorpatrick-scho <patrick.schoenberger@posteo.de>
Sat, 29 Nov 2025 14:12:53 +0000 (15:12 +0100)
committerpatrick-scho <patrick.schoenberger@posteo.de>
Sat, 29 Nov 2025 14:12:53 +0000 (15:12 +0100)
gitweb/gitweb.perl

index 07e535921d57dfaffab11b3adcfe63701019ddc2..ccbd12ae7ae8f40dcfee2a3975421db64836204a 100755 (executable)
@@ -7259,7 +7259,7 @@ sub get_markdown {
                }
            }
        }
-       if ($_ =~ /(<a[^>]href=")(.*?)"/) {
+       if ($_ =~ /(<a[^>]href="[^/])(.*?)"/) {
            my $origcut = "".$2;
            my $testcut = "".$2;
            my $is_anchor = ($testcut =~ /^#/);