Merge pull request #17547 from nextcloud/enh/noid/log-exception-json-escape

Do not escape slashes for logged exceptions
This commit is contained in:
Roeland Jago Douma 2019-10-21 11:14:03 +02:00 committed by GitHub
commit 2276cb12c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -324,7 +324,7 @@ class Log implements ILogger {
try {
if ($level >= $minLevel) {
if (!$this->logger instanceof IFileBased) {
$data = json_encode($data, JSON_PARTIAL_OUTPUT_ON_ERROR);
$data = json_encode($data, JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_UNESCAPED_SLASHES);
}
$this->writeLog($app, $data, $level);
}