Allow ? and = for the text pattern

Required for Account Settings link
This commit is contained in:
FusionPBX 2024-08-29 22:29:04 -06:00 committed by GitHub
parent c474b1a59b
commit a0cd465052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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);