Skip to content

Commit

Permalink
Fix reply to usernames containing HTML escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
aringenbach committed Jun 10, 2022
1 parent 5d3e42b commit 2103f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ - (NSString*)renderReplyTo:(NSString*)htmlString withRoomState:(MXRoomState*)roo

if (senderDisplayName)
{
html = [html stringByReplacingCharactersInRange:userIdRange withString:senderDisplayName];
html = [html stringByReplacingCharactersInRange:userIdRange withString:senderDisplayName.stringByAddingHTMLEntities];
}
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/5526.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix reply to usernames containing HTML escape characters

0 comments on commit 2103f1a

Please sign in to comment.