1
0
Fork 0
mirror of synced 2024-06-01 10:29:48 +12:00

Fix python failing logs

This commit is contained in:
Matej Bačo 2024-05-06 15:05:13 +00:00
parent 49a3a62b9d
commit 7d42db82a0

View file

@ -433,6 +433,8 @@ 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
$build = $build->setAttribute('logs', $build->getAttribute('logs', '') . $logs);
$build = $dbForProject->updateDocument('builds', $build->getId(), $build);