瀏覽代碼

Update dashboard_edit.php

FusionPBX 1 年之前
父節點
當前提交
ba0a80be8f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/dashboard/dashboard_edit.php

+ 2 - 2
core/dashboard/dashboard_edit.php

@@ -115,7 +115,7 @@
 		//define the regex patterns
 		$uuid_pattern = '/[^-A-Fa-f0-9]/';
 		$number_pattern = '/[^-A-Za-z0-9()*#]/';
-		$text_pattern = '/[^a-zA-Z0-9 _\-\/.\?Allow ? and = for the text pattern:\=#\n]/';
+		$text_pattern = '/[^a-zA-Z0-9 _\-\/.\?:\=#\n]/';
 
 		//sanitize the data
 		$dashboard_name = trim(preg_replace('/[^a-zA-Z0-9 _\-\/.#]/', '', $dashboard_name));
@@ -1184,4 +1184,4 @@
 //include the footer
 	require_once "resources/footer.php";
 
-?>
+?>