From 8cc2530210374261d1d5ce406362394cacc16811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 9 May 2024 13:40:31 +0000 Subject: [PATCH] PR review changes --- src/Appwrite/Platform/Workers/Builds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/Builds.php b/src/Appwrite/Platform/Workers/Builds.php index 51674ca11d..5ed7803d73 100644 --- a/src/Appwrite/Platform/Workers/Builds.php +++ b/src/Appwrite/Platform/Workers/Builds.php @@ -433,7 +433,7 @@ class Builds extends Action throw new \Exception('Build not found', 404); } - $logs = \mb_substr($logs, 0, \mb_strlen($logs, 'UTF-8') - 1, 'UTF-8'); // Get only valid UTF8 part - removes leftover half-multibytes causing SQL errors + $logs = \mb_substr($logs, 0, null, 'UTF-8'); // Get only valid UTF8 part - removes leftover half-multibytes causing SQL errors $build = $build->setAttribute('logs', $build->getAttribute('logs', '') . $logs); $build = $dbForProject->updateDocument('builds', $build->getId(), $build);