From a81cbe4db27affbc7e79e33541f86ec4b7e221c9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 28 Aug 2024 12:16:22 -0600 Subject: [PATCH] Allow line feeds in the text --- core/dashboard/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dashboard/index.php b/core/dashboard/index.php index c39278e854..94360508da 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -481,7 +481,7 @@ function toggle_grid_row_end_all() { if (!first_toggle && state === 'expanded') { return; } - + if (state === 'expanded') { div.style.gridRowEnd = 'span ' + (current_row_end_number - 3); div.dataset.state = 'contracted'; @@ -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 _\-\/.#]/'; + $text_pattern = '/[^a-zA-Z0-9 _\-\/.#\n]/'; //sanitize the data $dashboard_uuid = preg_replace($uuid_pattern, '', $dashboard_uuid);