From 0a4dd3605b82ae8650ccc5396183e3c49d9d0f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 15 Oct 2019 16:09:23 +0200 Subject: [PATCH] Do not escape slashes for logged exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Log.php b/lib/private/Log.php index 04148d549d..da29c35118 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); }