Escape html characters in plain message text
This commit is contained in:
@@ -221,8 +221,8 @@ class EMailNotification(BaseNotification):
|
|||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"{}: content mimetype is {}, converting to {}".format(
|
"{}: content mimetype is {}, converting to {}".format(
|
||||||
queueid, mimetype, self._html_text))
|
queueid, mimetype, self._html_text))
|
||||||
text = re.sub(r"^(.*)$", r"\1<br/>\n",
|
text = re.sub(r"^(.*)$", r"\1<br/>",
|
||||||
text.decode(), flags=re.MULTILINE)
|
escape(text.decode()), flags=re.MULTILINE)
|
||||||
else:
|
else:
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"{}: content mimetype is {}".format(
|
"{}: content mimetype is {}".format(
|
||||||
|
|||||||
Reference in New Issue
Block a user