Skip to content

Commit

Permalink
Fixed null error on hash_equal in Mage_Oauth_Model_Server (#3870)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiatng authored Mar 5, 2024
1 parent db3e41c commit 40c9f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Oauth/Model/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ protected function _initToken()
if (self::REQUEST_TOKEN == $this->_requestType) {
$this->_validateVerifierParam();

if (!hash_equals($this->_token->getVerifier(), $this->_protocolParams['oauth_verifier'])) {
if (!hash_equals((string)$this->_token->getVerifier(), $this->_protocolParams['oauth_verifier'])) {
$this->_throwException('', self::ERR_VERIFIER_INVALID);
}
if (!hash_equals((string)$this->_token->getConsumerId(), (string)$this->_consumer->getId())) {
Expand Down

0 comments on commit 40c9f1c

Please sign in to comment.