diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-02-17 21:37:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 21:37:34 +0100 |
commit | d753d0476053fc7859e60fe97670a4299dd8fa32 (patch) | |
tree | 47a4ec6c1d06528cbe61c46e15fbf53478510fb9 /lib/private/Log | |
parent | c7ef27d066aea2406c8009bd1a49888d1610b889 (diff) | |
download | nextcloud-server-d753d0476053fc7859e60fe97670a4299dd8fa32.tar.gz nextcloud-server-d753d0476053fc7859e60fe97670a4299dd8fa32.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/Log')
-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 ec88aa767fb..f8b43881f66 100644 --- a/lib/private/Log/LogDetails.php +++ b/lib/private/Log/LogDetails.php @@ -106,7 +106,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)); } } } |