simon-git: putty-wishlist (main): Jacob Nevins
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Oct 29 01:27:35 BST 2022
TL;DR:
23ff978 bugs2html: Fix HTML entity handling.
Repository: https://git.tartarus.org/simon/putty-wishlist.git
On the web: https://git.tartarus.org/?p=simon/putty-wishlist.git
Branch updated: main
Committer: Jacob Nevins <jacobn at chiark.greenend.org.uk>
Date: 2022-10-29 01:27:35
commit 23ff978609c475de304febc8b95bc6e4aa768b09
web diff https://git.tartarus.org/?p=simon/putty-wishlist.git;a=commitdiff;h=23ff978609c475de304febc8b95bc6e4aa768b09;hp=a72231278f32229954b9b5bbe39d7ba955c6e31c
Author: Jacob Nevins <jacobn at chiark.greenend.org.uk>
Date: Sat Oct 29 01:21:12 2022 +0100
bugs2html: Fix HTML entity handling.
Entities like < and > in bug files were being translated to
literal '<' and '>' in the HTML output.
While browsers could often display the resulting dodgy HTML the way it
was intended, in some cases the result looked enough like a tag to cause
misrendering.
Fixed with the 'convert_charrefs' argument to html.parser.HTMLParser.
(Added in Python 3.4, so should be safe enough to rely on. The default
changed in 3.5, which might be why we have this bug.)
I noticed this because it seriously mangled 'vuln-chm-hijack', but I
found noticeable errors with Firefox with at least the following bug
records (there are probably more):
vt-utf8-keyboard
multi-key
ssh-stuck-queue
x11-auth
rdesktop-paste-hang
ssh2-keyderive-nonbug
ntpd-slowdown
control/bugs2html.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the tartarus-commits
mailing list