Skip to content

Commit

Permalink
fix(apps): api - escape slack publish body.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnycrich committed May 16, 2024
1 parent 9e22cb0 commit 1154223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ app.post('/slack', async (req, res) => {
type: 'section',
text: {
type: 'mrkdwn',
text: `> :postit: ${req.body.message}`,
text: `> :postit: ${req.body.message.replace(/\"/g, '\\"')}`,
},
});
}
Expand Down

0 comments on commit 1154223

Please sign in to comment.