summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bf8aa34)
Fix a bug reported by Jakub Wilk [1].
[1]: id:
20220822064717.qftn4tr7cs4r2ian@jwilk.net
def link_msg(msg):
lnk = quote_plus(msg.messageid.encode('utf8'))
try:
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)
except LookupError:
subj = ""
out = '<a href="%s/show/%s">%s</a>' % (prefix, lnk, subj)