mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
Do not escape slashes in log json
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
049628a3f5
commit
29a6f2d830
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue