Skip to content

Commit

Permalink
fixup! fixup! fix: Use the DisplayName struct to protect against homo…
Browse files Browse the repository at this point in the history
…glyph attacks
  • Loading branch information
poljar committed Nov 12, 2024
1 parent 8069cd3 commit a309134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-sqlite/src/state_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ impl StateStore for SqliteStateStore {
// names, while we now consider them to be the same so we need to merge the
// previously distinct buckets of user IDs.
// 2. We can't do a migration to merge the previously distinct buckets of user
// IDs since the dipslay names itself are hashed before they are persisted
// IDs since the display names itself are hashed before they are persisted
// in the store.
let raw =
(self.encode_key(keys::DISPLAY_NAME, display_name.raw_str()), display_name);
Expand Down

0 comments on commit a309134

Please sign in to comment.