]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/CGI.pm
* Corrected a bum regexp in openid munging.
[ikiwiki.git] / IkiWiki / CGI.pm
index d23cf5d02236e059255e1f72e292e5ccee11ab2f..5d21d0674eca2b273aaeef28e77e5c418b62531a 100644 (file)
@@ -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>";