From b1f65aaabc35ecac6a60ca628eca75e4ad410238 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Thu, 11 Dec 2025 12:15:11 +0300 Subject: [PATCH] Fix: Allow using any character from the "letter" category in the name of the downloaded event archive (event.php) This change will allow the use of any national Unicode alphabet in the file name. We also allow any numeric character and the characters "-", ".", "(", ")" The ":" character is prohibited in file names in Windows, so we're excluding it from the list of allowed characters. --- web/ajax/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ajax/event.php b/web/ajax/event.php index c96038ec9..f1383a786 100644 --- a/web/ajax/event.php +++ b/web/ajax/event.php @@ -113,7 +113,7 @@ if ( canView('Events') or canView('Snapshots') ) { $exportFileName = isset($_REQUEST['exportFileName']) ? $_REQUEST['exportFileName'] : ''; if (!$exportFileName) $exportFileName = 'Export'.(isset($_REQUEST['connkey'])?$_REQUEST['connkey']:''); - $exportFileName = preg_replace('/[^\w\-\.\(\):]+/', '', $exportFileName); + $exportFileName = preg_replace('/[^\p{L}\p{N}\-\.\(\):]/u', '', $exportFileName); $exportIds = []; if (!empty($_REQUEST['eids'])) {