]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
fix missing close quote on all the Content-Transfer-Encoding in the German po files
[ikiwiki.git] / IkiWiki.pm
index 00eadfd9818e6e41adc36457b6bb45361355817b..251ed8cc81c20403f1da97540e7042d917e5644e 100644 (file)
@@ -1131,7 +1131,7 @@ sub openiduser ($) {
                # 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'};