Closed swaeberle closed 10 months ago
The sizeof() was operated on char * returning the architecture's pointer size, instead of the length of the char[]. On 64bit it worked only by chance, on 32bit the jwt_location was stripped at the wrong position.
sizeof()
char *
char[]
jwt_location
I believe we should be using srtlen(...) instead of sizeof(...)...thoughts?
srtlen(...)
sizeof(...)
Closing this; fixing with #115.
PR: https://github.com/TeslaGov/ngx-http-auth-jwt-module/pull/116
Fixed in the 2.0.3 release. Thanks for pointing out the issue!
The
sizeof()
was operated onchar *
returning the architecture's pointer size, instead of the length of thechar[]
. On 64bit it worked only by chance, on 32bit thejwt_location
was stripped at the wrong position.