aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-01-03 05:33:50 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-01-03 05:33:50 +0000
commite5348d2d70cf7a56f59f019b4adfbd4324212305 (patch)
tree926ed22aa1a1a90aeb787b65c527036c988bbb7a /IkiWiki
parentac4cb215a19c8356ebe063d8b86e072f92ed8597 (diff)
downloadikiwiki-e5348d2d70cf7a56f59f019b4adfbd4324212305.tar
ikiwiki-e5348d2d70cf7a56f59f019b4adfbd4324212305.tar.gz
* Corrected a bum regexp in openid munging.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index d23cf5d02..5d21d0674 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -668,7 +668,7 @@ sub userlink ($) { #{{{
}
# Convert "http://somehost.com/user" to "user [somehost.com]".
if ($display !~ /\[/) {
- $display=~s/^https?:\/\/(.+)\/[^\/](.+)$/$2 [$1]/;
+ $display=~s/^https?:\/\/(.+)\/([^\/]+)$/$2 [$1]/;
}
$display=~s!^https?://!!; # make sure this is removed
return "<a href=\"$user\">".escapeHTML($display)."</a>";