Skip to content
Merged
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
5 changes: 5 additions & 0 deletions lib/Service/SubmissionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@
->setWrapText(true);
} else {
$activeWorksheet->setCellValue([$column, $row], $value);

// Quote cell values that start with '=' to prevent evaluation of formulas
if (is_string($value) && str_starts_with($value, '=')) {
Comment thread
Chartman123 marked this conversation as resolved.
$activeWorksheet->getCell([$column, $row])->getStyle()->setQuotePrefix(true);

Check warning on line 318 in lib/Service/SubmissionService.php

View check run for this annotation

Codecov / codecov/patch

lib/Service/SubmissionService.php#L318

Added line #L318 was not covered by tests
}
}
}
}
Expand Down
Loading