diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-10-07 13:39:40 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-10-07 13:39:40 +0200 |
commit | 29a6f2d83003572972f8fa3eb0b9743b78081e0d (patch) | |
tree | 60d831516c61aac30d6cfad003de9cfc224d9e13 /lib/private/Log/LogDetails.php | |
parent | 049628a3f53f3e5e6fe4111b5e28fa90d1a95dd9 (diff) | |
download | nextcloud-server-29a6f2d83003572972f8fa3eb0b9743b78081e0d.tar.gz nextcloud-server-29a6f2d83003572972f8fa3eb0b9743b78081e0d.zip |
Do not escape slashes in log json
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Log/LogDetails.php')
-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); } } |