if 'last' in args:
self.send('Last feeds check: %s' % self.th_mon.last_check)
return
- html = ['<a href="{0}">{1}</a>'.format(u, u[7:]) for u in Feeds.FEEDS]
+ html = ['<a href="{0}">{1}</a>'.format(html_escape(u),
+ html_escape(u[7:])
+ ) for u in Feeds.FEEDS]
msg = {
'mbody': 'Feeds:\n' + '\n'.join(Feeds.FEEDS),
- 'mhtml': 'Feeds:<br />' + '<br />'.join(html)
+ 'mhtml': 'Feeds:<br />' + '<br />'.join(html),
}
self.send(msg)