diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-10-21 11:14:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 11:14:03 +0200 |
commit | 2276cb12c42a9373e2b59a508ae1cb6b29efb6f4 (patch) | |
tree | d24afc5b01624e2117ba61c14a17b1788c232ee1 /lib | |
parent | c92e64b5376b2143151d29b7e1bd679267d576c2 (diff) | |
parent | 0a4dd3605b82ae8650ccc5396183e3c49d9d0f30 (diff) | |
download | nextcloud-server-2276cb12c42a9373e2b59a508ae1cb6b29efb6f4.tar.gz nextcloud-server-2276cb12c42a9373e2b59a508ae1cb6b29efb6f4.zip |
Merge pull request #17547 from nextcloud/enh/noid/log-exception-json-escape
Do not escape slashes for logged exceptions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Log.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php index 04148d549d6..da29c351185 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -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); } |