limosa-io / openid-connect-server

This is an OpenID Connect Server written in PHP.
GNU Affero General Public License v3.0
46 stars 9 forks source link

Provide a default empty string value for nonce #11

Closed flh closed 2 years ago

flh commented 2 years ago

Recent PHP versions emit an error on the subsequent call to strlen() if the nonce value is null.

An alternative solution would be to change the test to:

if($nonce !== null and strlen(...))

I do not know which one you prefer.

arietimmerman commented 2 years ago

Thanks, I have merged it in.