Skip to content

Commit

Permalink
Changed validateCsrf from mb_strlen to strlen
Browse files Browse the repository at this point in the history
  • Loading branch information
Fosco Marotto committed Mar 2, 2015
1 parent 507c182 commit 2ed50e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Facebook/Entities/SignedRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ public static function validateSignature($hashedSig, $sig)
public static function validateCsrf(array $data, $state)
{
if (isset($data['state'])) {
$savedLen = mb_strlen($state);
$givenLen = mb_strlen($data['state']);
$savedLen = strlen($state);
$givenLen = strlen($data['state']);
if ($savedLen == $givenLen) {
$result = 0;
for ($i = 0; $i < $savedLen; $i++) {
Expand Down

0 comments on commit 2ed50e1

Please sign in to comment.