HTML tags are interpreted in a topic change message
Categories
(Chat Core :: IRC, defect)
Tracking
(thunderbird_esr68 fixed)
Tracking | Status | |
---|---|---|
thunderbird_esr68 | --- | fixed |
People
(Reporter: dpb, Assigned: clokep)
References
Details
Attachments
(1 file, 1 obsolete file)
1017 bytes,
patch
|
clokep
:
review+
wsmwk
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
Steps to reproduce:
Enter the command "/topic a <b> c" in an IRC channel where you have ops.
Actual results:
Thunderbird prints the following message:
SpecLad изменил тему на: a c. ("SpecLad changed the topic to: a c.")
The letter "c" is printed in bold.
The same display error happens with the topic message you get when you enter the channel.
Expected results:
The topic should be printed as-is, i.e.:
SpecLad изменил тему на: a <b> c.
Comment 1•5 years ago
|
||
The topic seems to be set correctly, it's only the system message displayed in the conversation that's incorrect.
Assignee | ||
Comment 3•5 years ago
|
||
We have two pieces of code:
ctcpFormatToText
: strips out the CTCP formatting of messages (and returns plain text).ctcpFormatToHTML
: converts the CTCP formatting into the appropriate HTML tags.
Both of these should have been FIRST escaping HTML in the input string, but ctcpFormatToText
was not doing this.
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
I failed to include author info in my first patch. This is the same patch, including the previous review status.
Assignee | ||
Updated•5 years ago
|
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/afa946f9ac2e
Do not interpret HTML tags in IRC topic messages. r=nhnt11
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Comment 8•5 years ago
|
||
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder uplift |
Thunderbird 68.8.1:
https://hg.mozilla.org/releases/comm-esr68/rev/af9a06ee0625
Description
•