Ensure log report is always in valid UTF-8

Bug: T377473
Change-Id: Ica9bc98e100e169c6c4dd8398d410347c59ee2fd
This commit is contained in:
Ammarpad 2024-11-05 17:02:00 +01:00 committed by jenkins-bot
parent 726638268d
commit 756896edbb

View file

@ -87,7 +87,7 @@ class LuaSandboxEngine extends LuaEngine {
$logs = $this->getLogBuffer();
if ( $logs !== '' ) {
$ret['scribunto-limitreport-logs'] = $logs;
$ret['scribunto-limitreport-logs'] = $this->fixTruncation( $logs );
}
if ( $t < 1.0 ) {