mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 14:27:59 -05:00
Merge pull request #4481 from IgorA100/patch-173721
Fix: Allow using any character from the "letter" category in the name of the downloaded event archive on Events page
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