mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
nmweb: escape subject in search view
Fix a bug reported by Jakub Wilk [1]. [1]: id:20220822064717.qftn4tr7cs4r2ian@jwilk.net
This commit is contained in:
parent
bf8aa34324
commit
48d6b31485
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ env.globals['mailto_addrs'] = mailto_addrs
|
|||
def link_msg(msg):
|
||||
lnk = quote_plus(msg.messageid.encode('utf8'))
|
||||
try:
|
||||
subj = msg.header('Subject')
|
||||
subj = html.escape(msg.header('Subject'))
|
||||
except LookupError:
|
||||
subj = ""
|
||||
out = '<a href="%s/show/%s">%s</a>' % (prefix, lnk, subj)
|
||||
|
|
Loading…
Reference in a new issue