From 56f6511ad3b09e748b08cf56f501c026666ba4fb Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 25 Feb 2019 21:46:23 +0000 Subject: [PATCH] Critical security fix: truncate IRCLine.ParsedLine.format() at newline --- src/IRCLine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCLine.py b/src/IRCLine.py index ee0b16e4..69c83006 100644 --- a/src/IRCLine.py +++ b/src/IRCLine.py @@ -76,7 +76,7 @@ class ParsedLine(object): else: s += self._args[-1] - return s + return s.split("\n")[0].strip("\r") class SentLine(IRCObject.Object): def __init__(self, send_time: datetime.datetime, hostmask: str,