Skip to content

Commit

Permalink
fix: X-Twilio-Signature validation when URL query parameters contain …
Browse files Browse the repository at this point in the history
…@ or : (#621)
  • Loading branch information
adamj9431 authored Nov 5, 2020
1 parent 90f4c46 commit 528fc25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/webhooks/webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ function validateExpressRequest(request, authToken, opts) {
});
if (request.originalUrl.search(/\?/) >= 0) {
webhookUrl = webhookUrl.replace(/%3F/g, '?');
webhookUrl = webhookUrl.replace(/%3A/g, ':');
webhookUrl = webhookUrl.replace(/%40/g, '@');
}

}
Expand Down

0 comments on commit 528fc25

Please sign in to comment.