]> git.notmuchmail.org Git - notmuch/commitdiff
nmbug-status: Escape &, <, and > in HTML display data
authorW. Trevor King <wking@tremily.us>
Thu, 13 Feb 2014 16:47:20 +0000 (08:47 -0800)
committerDavid Bremner <david@tethera.net>
Fri, 14 Feb 2014 12:29:33 +0000 (08:29 -0400)
'message-id' and 'from' now have sensitive characters escaped using
xml.sax.saxutils.escape [1].  The 'subject' data was already being
converted to a link into Gmane; I've escape()d that too, so it doesn't
need to be handled ain the same block as 'message-id' and 'from'.

This prevents broken HTML by if subjects etc. contain characters that
would otherwise be interpreted as HTML markup.

[1]: http://docs.python.org/3/library/xml.sax.utils.html#xml.sax.saxutils.escape


No differences found