diff options
Diffstat (limited to 'lib/private/Log')
-rw-r--r-- | lib/private/Log/LogDetails.php | 4 |
1 files 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); } } |