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

Fixed hmac::verify #24

Merged
merged 1 commit into from
Jun 10, 2015
Merged

Fixed hmac::verify #24

merged 1 commit into from
Jun 10, 2015

Conversation

ptrofimov
Copy link

$expected could be not a string (namely false), when function base64_decode finds in the string invalid chars. In this case, function hash_equals triggers warning "hash_equals(): Expected known_string to be a string, boolean given".

This fix solves the problem.

@ptrofimov
Copy link
Author

@lcobucci what do you think?

@lcobucci
Copy link
Owner

Sorry @ptrofimov by the delay of the response and thanks for the collaboration.

lcobucci added a commit that referenced this pull request Jun 10, 2015
@lcobucci lcobucci merged commit 8643027 into lcobucci:master Jun 10, 2015
@ptrofimov
Copy link
Author

Great! Thanks.

@ptrofimov
Copy link
Author

But could you, please, make a tag 2.1.2 for 2.1.* branch with this fix too? Because it will require time to change our project code for 3.* version.

@lcobucci
Copy link
Owner

Ok, I'll create that tag.

On PR #16 @henriquemoody, @ppetermann and me discussed a little bit about maintaining older releases and the decision was to update only the last version, maybe we can review that with some new ideas.

@lcobucci
Copy link
Owner

Done ;)

@ptrofimov
Copy link
Author

Super! Works. Thank you.

@henriquemoody
Copy link
Collaborator

@lcobucci, perhaps you should create branches only for MAJOR versions, not for MINOR ones.

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.

3 participants