Skip to content

Commit 5cd7ae0

Browse files
authored
remove ignore_bit_strings (#276)
1 parent 9eb9f98 commit 5cd7ae0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/JWT.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,7 @@ private static function readDER($der, $offset = 0)
499499
if ($type == self::ASN1_BIT_STRING) {
500500
$pos++; // Skip the first contents octet (padding indicator)
501501
$data = substr($der, $pos, $len - 1);
502-
if (!$ignore_bit_strings) {
503-
$pos += $len - 1;
504-
}
502+
$pos += $len - 1;
505503
} elseif (!$constructed) {
506504
$data = substr($der, $pos, $len);
507505
$pos += $len;

0 commit comments

Comments
 (0)