From 29a6f2d83003572972f8fa3eb0b9743b78081e0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julius=20H=C3=A4rtl?= <jus@bitgrid.net>
Date: Mon, 7 Oct 2019 13:39:40 +0200
Subject: [PATCH] Do not escape slashes in log json
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Julius Härtl <jus@bitgrid.net>
---
 lib/private/Log/LogDetails.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/private/Log/LogDetails.php b/lib/private/Log/LogDetails.php
index 712b5403ca0..e833221e222 100644
--- a/lib/private/Log/LogDetails.php
+++ b/lib/private/Log/LogDetails.php
@@ -90,12 +90,12 @@ abstract class LogDetails {
 		// them manually.
 		foreach($entry as $key => $value) {
 			if(is_string($value)) {
-				$testEncode = json_encode($value);
+				$testEncode = json_encode($value, JSON_UNESCAPED_SLASHES);
 				if($testEncode === false) {
 					$entry[$key] = utf8_encode($value);
 				}
 			}
 		}
-		return json_encode($entry, JSON_PARTIAL_OUTPUT_ON_ERROR);
+		return json_encode($entry, JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_UNESCAPED_SLASHES);
 	}
 }
-- 
GitLab