diff --git a/functions.php b/functions.php index 27b1ceb..6efa365 100644 --- a/functions.php +++ b/functions.php @@ -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");