Skip to content
Unverified Commit c016b01b authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Ensure log message is UTF-8 encoded



PHP's json_encode only accept proper UTF-8 strings, loop over all
elements to ensure that they are properly UTF-8 compliant or convert
them manually.

Without this somebody passing an invalid User Agent may make json_encode
return false which will get logged as empty newline.

Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>
parent e37cf2d6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment