From a0cd46505249f80c7c442ac4353e2e6c4e066830 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 29 Aug 2024 22:29:04 -0600 Subject: [PATCH] Allow ? and = for the text pattern Required for Account Settings link --- core/dashboard/dashboard_edit.php | 2 +- core/dashboard/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php index 48f01d20d4..556fd85a11 100644 --- a/core/dashboard/dashboard_edit.php +++ b/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 _\-\/.#\n]/'; + $text_pattern = '/[^a-zA-Z0-9 _\-\/.\?\=#\n]/'; //sanitize the data $dashboard_name = trim(preg_replace('/[^a-zA-Z0-9 _\-\/.#]/', '', $dashboard_name)); diff --git a/core/dashboard/index.php b/core/dashboard/index.php index 7c77ca16d8..a58506051b 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -525,7 +525,7 @@ function toggle_grid_row_end_all() { //define the regex patterns $uuid_pattern = '/[^-A-Fa-f0-9]/'; $number_pattern = '/[^-A-Za-z0-9()*#]/'; - $text_pattern = '/[^a-zA-Z0-9 _\-\/.#\n]/'; + $text_pattern = '/[^a-zA-Z0-9 _\-\/.\?\=#\n]/'; //sanitize the data $dashboard_uuid = preg_replace($uuid_pattern, '', $dashboard_uuid);