encode url components

This commit is contained in:
Bruno Windels 2022-01-14 15:53:17 +01:00
parent b578f4ac84
commit 1ea4a347e2

View File

@ -35,11 +35,11 @@ export class BaseMessageTile extends SimpleTile {
} }
get permaLink() { get permaLink() {
return `https://matrix.to/#/${this._room.id}/${this._entry.id}`; return `https://matrix.to/#/${encodeURIComponent(this._room.id)}/${encodeURIComponent(this._entry.id)}`;
} }
get senderProfileLink() { get senderProfileLink() {
return `https://matrix.to/#/${this.sender}`; return `https://matrix.to/#/${encodeURIComponent(this.sender)}`;
} }
get displayName() { get displayName() {