]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/openid.pm
po(nicepagetitle): forgot to display %
[git.ikiwiki.info.git] / IkiWiki / Plugin / openid.pm
index 4acfecf5efe44a9d82b2042de03b51b06263f9ad..574c42f0ed83efd2e4e4690d2680a4cc1a92df56 100644 (file)
@@ -197,8 +197,9 @@ sub openiduser ($) {
                        $display=~s/^([-a-zA-Z0-9]+?)\.([-.a-zA-Z0-9]+\.[a-z]+)$/$1 [$2]/;
                }
                # Convert "http://somehost.com/user" to "user [somehost.com]".
+               # (also "https://somehost.com/user/")
                if ($display !~ /\[/) {
-                       $display=~s/^https?:\/\/(.+)\/([^\/]+)$/$2 [$1]/;
+                       $display=~s/^https?:\/\/(.+)\/([^\/]+)\/?$/$2 [$1]/;
                }
                $display=~s!^https?://!!; # make sure this is removed
                eval q{use CGI 'escapeHTML'};