Skip to content

Commit

Permalink
workaround for binary values 32 bytes length
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Apr 7, 2024
1 parent 17e82dd commit 786bc32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/RO.php
Expand Up @@ -218,7 +218,11 @@ public function getValueByTypeId( $id, $type )
return $value;
else
if( $type === TYPE_BINARY )
{
if( strlen( $value ) === 32 )
return '0x' . bin2hex( $value );
return 'base64:' . base64_encode( $value );
}

w8_err( 'unknown type ' . $type );
}
Expand Down

0 comments on commit 786bc32

Please sign in to comment.