improve
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 21 Nov 2006 17:56:04 +0000 (17:56 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 21 Nov 2006 17:56:04 +0000 (17:56 +0000)
IkiWiki/CGI.pm

index d29151ace59356bf2f548592f08f2d46da3ca83a..b90b43d8dc37a825ec680ca0a763330d66ca52d1 100644 (file)
@@ -659,6 +659,7 @@ sub userlink ($) { #{{{
                if ($display !~ /\[/) {
                        $display=~s/^(.*?)\.([^.]+\.[a-z]+)$/$1 [$2]/;
                }
+               $display=~s!^https?://!!; # make sure this is removed
                return "<a href=\"$user\">".escapeHTML($display)."</a>";
        }
        else {