Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions webapp/src/Service/DOMJudgeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,10 @@ public function getScoreboardZip(
if ($filepath === false) {
throw new Exception("Could not find (possibly symlinked) file: " . $file . ", at: " . $publicPath);
}
if (!in_array(filetype($filepath), ['file', 'link'])) {
// Ignore special filetypes
continue;
}
if (!(str_starts_with($filepath, $publicPath) ||
str_starts_with($filepath, $this->vendorDir) ||
str_starts_with($filepath, $this->nodeModulesDir))
Expand Down
Loading