From 660997f8e77e192abf56230e062c70cc3a154b91 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 14 May 2017 15:40:35 +0200 Subject: [PATCH] Quick hack for excessively long messages - only process the first MB of a message for GUI purposes (parsing/rendering) --- src/bitmessageqt/messageview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/messageview.py b/src/bitmessageqt/messageview.py index 40830a70..882dbb81 100644 --- a/src/bitmessageqt/messageview.py +++ b/src/bitmessageqt/messageview.py @@ -128,6 +128,7 @@ class MessageView(QtGui.QTextBrowser): self.html.reset() self.html.reset_safe() self.html.allow_picture = True - self.html.feed(data) + # quick hack to limit excessively compressed messages, limits viewing to first MB of data + self.html.feed(data[0:1048576]) self.html.close() self.showPlain()