diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-02-17 21:37:34 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-02-20 08:37:05 +0000 |
commit | ebcd8c0a4746c1141d9cc4d7a609fd70114eaf62 (patch) | |
tree | f5b053d821781fe9f8cc6f17a02cc017b75d47d2 /lib/private | |
parent | 6ffffc218ac00080fae69c69d8abdb67b8befe50 (diff) | |
download | nextcloud-server-ebcd8c0a4746c1141d9cc4d7a609fd70114eaf62.tar.gz nextcloud-server-ebcd8c0a4746c1141d9cc4d7a609fd70114eaf62.zip |
Move away from deprecated utf_encode() on PHP 8.2+
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Log/LogDetails.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log/LogDetails.php b/lib/private/Log/LogDetails.php index c82904d7cea..2e37ec1bb2f 100644 --- a/lib/private/Log/LogDetails.php +++ b/lib/private/Log/LogDetails.php @@ -108,7 +108,7 @@ abstract class LogDetails { if (is_string($value)) { $testEncode = json_encode($value, JSON_UNESCAPED_SLASHES); if ($testEncode === false) { - $entry[$key] = utf8_encode($value); + $entry[$key] = mb_convert_encoding($value, 'UTF-8', mb_detect_encoding($value)); } } } |