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

Commit

Permalink
Merge pull request bleakgrey#1 from cleac/master
Browse files Browse the repository at this point in the history
Fix escaping user names with "&" character
  • Loading branch information
jcamposz committed May 7, 2020
2 parents 301c92e + dbae3a5 commit 105a46e
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 105a46e

Please sign in to comment.