Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added validation of signature without stripping port number #578

Merged
merged 4 commits into from Oct 15, 2019

Conversation

eshanholtz
Copy link
Contributor

PR for DI-319

src/Twilio/Security/RequestValidator.php Outdated Show resolved Hide resolved
src/Twilio/Security/RequestValidator.php Outdated Show resolved Hide resolved
src/Twilio/Security/RequestValidator.php Outdated Show resolved Hide resolved
$validSignatureWithoutPort = self::compare(
$this->computeSignature($urlWithoutPort, $data),
$expectedSignature
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice simplification!

src/Twilio/Security/RequestValidator.php Show resolved Hide resolved
Copy link
Contributor

@childish-sambino childish-sambino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏄

@eshanholtz eshanholtz merged commit 6430640 into master Oct 15, 2019
@eshanholtz eshanholtz deleted the di-319 branch October 15, 2019 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants