summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-02-17 21:37:34 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-02-20 08:37:05 +0000
commitebcd8c0a4746c1141d9cc4d7a609fd70114eaf62 (patch)
treef5b053d821781fe9f8cc6f17a02cc017b75d47d2 /lib/private
parent6ffffc218ac00080fae69c69d8abdb67b8befe50 (diff)
downloadnextcloud-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.php2
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));
}
}
}