Skip to content

Commit 0e0217a

Browse files
committed
fix: quote cell values to prevent formula evaluation
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 0fb87f0 commit 0e0217a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/Service/SubmissionService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ private function exportData(array $header, array $data, string $fileFormat, ?Fil
313313
} else {
314314
$activeWorksheet->setCellValue([$column, $row], $value);
315315
}
316+
// Quote cell value to prevent evaluation of formulas
317+
$activeWorksheet->getCell([$column, $row])->getStyle()->setQuotePrefix(true);
316318
}
317319
}
318320

0 commit comments

Comments
 (0)