We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34bad5 commit 1f1eef9Copy full SHA for 1f1eef9
webapp/src/Service/DOMJudgeService.php
@@ -1568,6 +1568,9 @@ public function getScoreboardZip(
1568
$publicPath = realpath(sprintf('%s/public/', $this->projectDir));
1569
foreach ($assetMatches[1] as $file) {
1570
$filepath = realpath($publicPath . '/' . $file);
1571
+ if ($filepath === false) {
1572
+ throw new BadRequestHttpException("Could not find file: " . $file);
1573
+ }
1574
if (!str_starts_with($filepath, $publicPath) &&
1575
!str_starts_with($filepath, $this->vendorDir)
1576
) {
0 commit comments