From 671f321eadf125ea60bcb6e3681c98a691a87e9c Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 23 Oct 2016 18:35:20 +0200 Subject: [PATCH] HTML parser fix - the UTF-8-ifying of tags had missing brackets --- src/bitmessageqt/safehtmlparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessageqt/safehtmlparser.py b/src/bitmessageqt/safehtmlparser.py index f5c42893..b6fb8ca9 100644 --- a/src/bitmessageqt/safehtmlparser.py +++ b/src/bitmessageqt/safehtmlparser.py @@ -82,7 +82,7 @@ class SafeHTMLParser(HTMLParser): val == "" self.sanitised += " " + quote_plus(attr) if not (val is None): - self.sanitised += "=\"" + val if isinstance(val, unicode) else unicode(val, 'utf-8', 'replace') + "\"" + self.sanitised += "=\"" + (val if isinstance(val, unicode) else unicode(val, 'utf-8', 'replace')) + "\"" if inspect.stack()[1][3] == "handle_startendtag": self.sanitised += "/" self.sanitised += ">"