Skip to content

Commit

Permalink
Merge pull request #16552 from jjcoffee/15700
Browse files Browse the repository at this point in the history
Escape HTML in welcome message
  • Loading branch information
johnmlee101 authored Mar 29, 2023
2 parents d8657ba + 26668e5 commit 608b696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ function addMembersToWorkspace(memberLogins, welcomeNote, policyID) {

API.write('AddMembersToWorkspace', {
employees: JSON.stringify(_.map(logins, login => ({email: login}))),
welcomeNote,

// Escape HTML special chars to enable them to appear in the invite email
welcomeNote: _.escape(welcomeNote),
policyID,
}, {optimisticData, successData, failureData});
}
Expand Down

0 comments on commit 608b696

Please sign in to comment.