]> gitweb.ps.run Git - ps-gitweb/blobdiff - gitweb/gitweb.perl
do not replace absolute links
[ps-gitweb] / 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 =~ /^#/);