From 07fcb72e3b5661e854369b49c60dd0758caf1412 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 30 Sep 2024 06:33:09 -0400 Subject: [PATCH] Use the same filter on Storage Name as we use in Monitor Name. --- web/includes/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/Storage.php b/web/includes/Storage.php index a922d1013..fdaa8c8d6 100644 --- a/web/includes/Storage.php +++ b/web/includes/Storage.php @@ -21,7 +21,7 @@ class Storage extends ZM_Object { protected $defaults = array( 'Id' => null, 'Path' => array('type'=>'text','filter_regexp'=>array('/[^\w\-\.\(\)\:\/ ]/','/\/$/'), 'default'=>''), - 'Name' => '', + 'Name' => array('type'=>'text','filter_regexp'=>'/[^\w\-\.\(\)\:\/ ]/', 'default'=>'Storage'), 'Type' => 'local', 'Url' => '', 'DiskSpace' => null,