Skip to content

Commit

Permalink
不正なメンションを利用したXSSの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Sep 15, 2022
1 parent ed37922 commit 037f083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/markdown/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const storeProvider: Store = {
return `${embeddingOrigin}${channelIdToLink(id)}`
},
generateUserHref(id) {
return `javascript:openUserModal('${id}')`
return `javascript:openUserModal(${JSON.stringify(id)})`
},
generateUserGroupHref(id) {
return `javascript:openGroupModal('${id}')`
return `javascript:openGroupModal(${JSON.stringify(id)})`
}
}

Expand Down

0 comments on commit 037f083

Please sign in to comment.