Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
#607: Fixed issue with wrong length calculation for hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Harniuk Bohdan committed Apr 16, 2019
1 parent 53b5341 commit 35bebde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
throw new GraphQlAlreadyExistsException(__('Specified parameter "cart_id" is non unique.'));
}

if (strlen($maskedQuoteId) > 32) {
if (mb_strlen($maskedQuoteId) > 32) {
throw new GraphQlInputException(__('"cart_id" length have to be less than or equal to 32.'));
}
}
Expand Down

0 comments on commit 35bebde

Please sign in to comment.