Skip to content
Snippets Groups Projects
Unverified Commit 2276cb12 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

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

Do not escape slashes for logged exceptions
parents c92e64b5 0a4dd360
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment