diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-21 17:56:04 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-21 17:56:04 +0000 |
commit | 95e8127405511522f388b18e22b852aadd4a8ad8 (patch) | |
tree | f81f588b601911516ef2702fb892b407117b90a0 | |
parent | ffb27000431f744f2cec9d198d0a0d8cbb0bd405 (diff) | |
download | ikiwiki-95e8127405511522f388b18e22b852aadd4a8ad8.tar ikiwiki-95e8127405511522f388b18e22b852aadd4a8ad8.tar.gz |
improve
-rw-r--r-- | IkiWiki/CGI.pm | 1 |
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 { |