summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-10-21 11:14:03 +0200
committerGitHub <noreply@github.com>2019-10-21 11:14:03 +0200
commit2276cb12c42a9373e2b59a508ae1cb6b29efb6f4 (patch)
treed24afc5b01624e2117ba61c14a17b1788c232ee1 /lib
parentc92e64b5376b2143151d29b7e1bd679267d576c2 (diff)
parent0a4dd3605b82ae8650ccc5396183e3c49d9d0f30 (diff)
downloadnextcloud-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.php2
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);
}