nextcloud/lib/private/Log
Lukas Reschke d5c2f7f7af
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: Lukas Reschke <lukas@statuscode.ch>
2017-08-21 10:22:16 +02:00
..
ErrorHandler.php Fix others 2016-07-21 18:13:57 +02:00
Errorlog.php Move \OC\Log to PSR-4 2016-05-03 08:57:26 +02:00
File.php Ensure log message is UTF-8 encoded 2017-08-21 10:22:16 +02:00
Rotate.php Fix others 2016-07-21 18:13:57 +02:00
Syslog.php Reverted the default syslog tag to avoid breaking existing systems. 2016-07-22 14:38:44 +02:00