Result file: escape event title

This commit is contained in:
Sven Seeberg 2020-11-19 19:02:04 +01:00
parent a4ea94adc7
commit a415af0a39
Signed by: sven.seeberg
GPG key ID: 29559DD5A83806B5

View file

@ -150,7 +150,7 @@ class AbstimmIDd {
$event_title = str_replace(' ', '_', addslashes($body->event_title));
$file_path = $this->cfg['export']['path'] . '/' . date('Y-m-d') .
"__{$event_title}__Abstimmung-$vote_round";
"__{".escapeshellarg($event_title)."}__Abstimmung-$vote_round";
$sha256_txt = $this->create_text_file($body, "$file_path.txt");
$sha256_pdf = $this->create_pdf_file($body, "$file_path.pdf");