Merge pull request #17440 from nextcloud/enh/noid/log-json-escape
Do not escape slashes in log json
This commit is contained in:
commit
f2d44b87bb
|
@ -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 New Issue