mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
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.
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user