#61 rightsidebar.py displays userid escaped

closed-fixed
nobody
None
5
2004-09-25
2004-08-30
Patrick Mueller
No

In the rightsidebar.py theme, when the userid has
characters that moin will escape to create the actual
page name for the user, that escaped version of the
userid is displayed under the user section.

The fix seems simple enough. In rightsidebar.py, line
75, change:

html.append('%s' %
wikiutil.link_tag(self.request,
wikiutil.quoteWikiname(self.request.user.name)))

to the following:

html.append('%s' %
wikiutil.link_tag(self.request,
wikiutil.quoteWikiname(self.request.user.name),wikiutil.escape(self.request.user.name)))

What this does is call quote Wikiname with a specific
piece of text to display (the HTML escaped userid),
instead of using the default which is the Moin-escaped
userid.

Discussion

  • Logged In: YES
    user_id=100649

    thanks!

    fixed in moin--main--1.2 tla repository

     
    • status: open --> closed-fixed