1. Odd Simon Simonsen
  2. trac-011

Commits

cboos  committed c6df6e3

[svn r9925] 0.11.7.1: in the plugins admin tab, be more robust when handling non-unicode strings in setup keys, beyond the author.

Patch by Manuel Jesús Recena Soto, thanks!

Closes #9417.

  • Participants
  • Parent commits 229c152
  • Branches 0.11-stable

Comments (0)

Files changed (1)

File trac/admin/web_ui.py

View file
  • Ignore whitespace
                             if k == 'home_page' or k == 'url':
                                 k = 'home_page'
                                 v = v.replace('$', '').replace('URL: ', '') 
-                            if k == 'author':
+                            else:
                                 v = to_unicode(v)
                             info[k] = v
                 else:
                     for k in info:
                         if info[k] == 'UNKNOWN':
                             info[k] = None
-                        elif k == 'author':
+                        else:
                             # Must be encoded as unicode as otherwise Genshi 
                             # may raise a "UnicodeDecodeError".
                             info[k] = to_unicode(info[k])