Skip to content

Commit 557a513

Browse files
committed
Apply base64 encoding to compilation output
In other places, the logs are nicely base64 encoded and the twig template applies a base64 decoding (`webapp/templates/jury/internal_error.html.twig`) to render the judgehost logs. This seems to be missed on this place. Fixes issue #2456.
1 parent 11fe36f commit 557a513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Controller/API/JudgehostController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public function updateJudgingAction(
431431
->setJudging($judging)
432432
->setContest($judging->getContest())
433433
->setDescription('Compilation results are different for j' . $judging->getJudgingid())
434-
->setJudgehostlog('New compilation output: ' . $output_compile)
434+
->setJudgehostlog(base64_encode('New compilation output: ' . $output_compile))
435435
->setTime(Utils::now())
436436
->setDisabled($disabled);
437437
$this->em->persist($error);

0 commit comments

Comments
 (0)