Use the same filter on Storage Name as we use in Monitor Name.

pull/4159/head
Isaac Connor 2024-09-30 06:33:09 -04:00
parent 97b7ae9c5f
commit 07fcb72e3b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class Storage extends ZM_Object {
protected $defaults = array( protected $defaults = array(
'Id' => null, 'Id' => null,
'Path' => array('type'=>'text','filter_regexp'=>array('/[^\w\-\.\(\)\:\/ ]/','/\/$/'), 'default'=>''), 'Path' => array('type'=>'text','filter_regexp'=>array('/[^\w\-\.\(\)\:\/ ]/','/\/$/'), 'default'=>''),
'Name' => '', 'Name' => array('type'=>'text','filter_regexp'=>'/[^\w\-\.\(\)\:\/ ]/', 'default'=>'Storage'),
'Type' => 'local', 'Type' => 'local',
'Url' => '', 'Url' => '',
'DiskSpace' => null, 'DiskSpace' => null,