From: joey Date: Tue, 21 Nov 2006 17:56:04 +0000 (+0000) Subject: improve X-Git-Tag: 1.34~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95e8127405511522f388b18e22b852aadd4a8ad8;p=ikiwiki.git improve --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index d29151ace..b90b43d8d 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -659,6 +659,7 @@ sub userlink ($) { #{{{ if ($display !~ /\[/) { $display=~s/^(.*?)\.([^.]+\.[a-z]+)$/$1 [$2]/; } + $display=~s!^https?://!!; # make sure this is removed return "".escapeHTML($display).""; } else {