Skip to content

Commit

Permalink
Merge branch 'master-1.x' of github.com:razorpay/razorpay-magento int…
Browse files Browse the repository at this point in the history
…o master-1.x
  • Loading branch information
mayankamencherla committed Dec 23, 2016
2 parents 347a817 + 2e57d95 commit aa68e4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/community/Razorpay/Payments/Model/Paymentmethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,16 @@ protected function hash_equals($str1, $str2)
return hash_equals($str1, $str2);
}

if (strlen($a) !== strlen($b))
if (strlen($str1) !== strlen($str2))
{
return false;
}

$result = 0;

for ($i = 0; $i < strlen($a); $i++)
for ($i = 0; $i < strlen($str1); $i++)
{
$result |= ord($a[$i]) ^ ord($b[$i]);
$result |= ord($str1[$i]) ^ ord($str2[$i]);
}

return ($result == 0);
Expand Down

0 comments on commit aa68e4c

Please sign in to comment.