Allow national Unicode characters in monitor name (Monitor.php)

This commit is contained in:
IgorA100
2026-05-02 20:17:35 +03:00
committed by GitHub
parent c58a3ccdda
commit 44ca4abc89

View File

@@ -211,7 +211,7 @@ class Monitor extends ZM_Object {
protected $defaults = array(
'Id' => null,
'Name' => array('type'=>'text','filter_regexp'=>'/[^\w\-\.\(\)\:\/ ]/', 'default'=>'Monitor'),
Name' => array('type'=>'text','filter_regexp'=>'/[^\w\p{L}\-\.\(\)\:\/]+/iu', 'default'=>'Monitor'),
'Deleted' => 0,
'Notes' => '',
'ServerId' => 0,