Ticket #5382: trac-spamfilter-b64decode.diff
| File trac-spamfilter-b64decode.diff, 0.6 kB (added by Nils Maier <MaierMan@…>, 17 months ago) |
|---|
-
tracspamfilter/model.py
79 79 """Revert the encoding done by `_encode_content` and return an unicode 80 80 string""" 81 81 try: 82 return to_unicode( content.decode('base64'))82 return to_unicode(str(content).decode('base64')) 83 83 except (UnicodeEncodeError, binascii.Error): 84 84 # cope with legacy content (stored before base64 encoding) 85 85 return to_unicode(content)
