aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-11-21 17:56:04 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-11-21 17:56:04 +0000
commit95e8127405511522f388b18e22b852aadd4a8ad8 (patch)
treef81f588b601911516ef2702fb892b407117b90a0 /IkiWiki
parentffb27000431f744f2cec9d198d0a0d8cbb0bd405 (diff)
downloadikiwiki-95e8127405511522f388b18e22b852aadd4a8ad8.tar
ikiwiki-95e8127405511522f388b18e22b852aadd4a8ad8.tar.gz
improve
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm1
1 files changed, 1 insertions, 0 deletions
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 "<a href=\"$user\">".escapeHTML($display)."</a>";
}
else {