File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -498,11 +498,11 @@ static void php_jwt_encode(INTERNAL_FUNCTION_PARAMETERS) {
498
498
499
499
/* sign */
500
500
if (jwt -> alg == JWT_ALG_NONE ) {
501
- buflen += 1 ;
501
+ buflen += 1 ;
502
502
/* alg none */
503
503
buf = (char * )erealloc (buf , buflen );
504
504
strcat (buf , "." );
505
- buf [buflen ]= '\0' ;
505
+ buf [buflen ] = '\0' ;
506
506
} else {
507
507
/* set jwt struct */
508
508
jwt -> key = key ;
@@ -519,7 +519,7 @@ static void php_jwt_encode(INTERNAL_FUNCTION_PARAMETERS) {
519
519
zend_string * sig_str = zend_string_init (sig , sig_len , 0 );
520
520
char * sig_b64 = jwt_b64_url_encode (sig_str );
521
521
522
- buflen = strlen (sig_b64 ) + strlen (buf ) + 2 ;
522
+ buflen = strlen (sig_b64 ) + strlen (buf ) + 2 ;
523
523
char * tmp = (char * )ecalloc (buflen , 1 );
524
524
sprintf (tmp , "%s.%s" , buf , sig_b64 );
525
525
@@ -538,7 +538,7 @@ static void php_jwt_encode(INTERNAL_FUNCTION_PARAMETERS) {
538
538
539
539
jwt_free (jwt );
540
540
541
- RETVAL_STRINGL (buf , strlen (buf ));
541
+ RETVAL_STRINGL (buf , strlen (buf ));
542
542
efree (buf );
543
543
}
544
544
You can’t perform that action at this time.
0 commit comments