Fixed an issue in the Mercurial log browser displaying commit messages containing HTML characters.

Sun, 24 Sep 2017 17:15:08 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 24 Sep 2017 17:15:08 +0200
changeset 5880
6bd1c5e813c5
parent 5879
cb3e20c44546
child 5881
13381dbbb81e

Fixed an issue in the Mercurial log browser displaying commit messages containing HTML characters.

Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sun Sep 24 11:26:51 2017 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sun Sep 24 17:15:08 2017 +0200
@@ -1679,7 +1679,8 @@
                 childrenStr = ""
             
             messageStr = "<br />\n".join([
-                line.strip() for line in itm.data(0, self.__messageRole)
+                Utilities.html_encode(line.strip())
+                for line in itm.data(0, self.__messageRole)
             ])
             
             html = self.__detailsTemplate.format(

eric ide

mercurial