Skip to content

Commit 8222c13

Browse files
authored
Fix HTML escaping for user color attribute
1 parent 153b5e0 commit 8222c13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Build/src/privateMessages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export class PrivateMessageManager {
269269
return `
270270
<div class="msg">
271271
<span class="time">[${this.escapeHTML(date)}]</span>
272-
<span class="user" style="color:${this.escapeHTML(color)}">&lt;${this.escapeHTML(msg.from)}&gt;</span>
272+
<span class="user" style="color:${this.escapeAttr(color)}">&lt;${this.escapeHTML(msg.from)}&gt;</span>
273273
<span class="text">${processedText}</span>
274274
</div>
275275
`;
@@ -346,4 +346,4 @@ export class PrivateMessageManager {
346346
}
347347
return conversations;
348348
}
349-
}
349+
}

0 commit comments

Comments
 (0)