nextcloud/lib/private/Log
Lukas Reschke 179b850e4d
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:21:54 +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:21:54 +02:00
Rotate.php Get the logfile location while running the logrotate cron job instead of when registering the job 2017-01-06 16:10:07 +01:00
Syslog.php Reverted the default syslog tag to avoid breaking existing systems. 2016-07-22 14:38:44 +02:00