Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Fix escaping user names with "&" character
Browse files Browse the repository at this point in the history
  • Loading branch information
cleac committed May 4, 2020
1 parent 301c92e commit dbae3a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Widgets/Status.vala
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ public class Tootle.Widgets.Status : EventBox {
public void rebind () {
var formal = status.get_formal ();

title_user.set_label ("<b>%s</b>".printf ((formal.account.display_name)));
title_user.set_label (
"<b>%s</b>".printf ((formal.account.display_name.replace ("&", "&amp;")))
);
title_acct.label = "@" + formal.account.acct;
content_label.set_label (formal.content);
content_label.mentions = formal.mentions;
Expand Down

0 comments on commit dbae3a5

Please sign in to comment.