From 37e21e963b4a3f3f2d5f1b48dbf70b81b8000f98 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 13 Mar 2023 20:06:36 -0400 Subject: [PATCH] Add summernote WYSIWYG function to Raising a ticket as we sanitize outout with HTMLPurify --- portal/portal_post.php | 4 ---- portal/ticket_add.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/portal/portal_post.php b/portal/portal_post.php index 655d60c7..b504d0eb 100644 --- a/portal/portal_post.php +++ b/portal/portal_post.php @@ -44,10 +44,6 @@ if (isset($_POST['add_ticket'])) { if (isset($_POST['add_ticket_comment'])) { $ticket_id = intval($_POST['ticket_id']); - - // Not currently providing the client portal with a full summer note editor, but need to maintain line breaks. - // In order to maintain line breaks consistently with the agent side, we need to allow HTML tags. - // So, we need to convert line breaks to HTML and clean HTML with HTML Purifier $comment = mysqli_real_escape_string($mysqli, $_POST['comment']); // After stripping bad HTML, check the comment isn't just empty diff --git a/portal/ticket_add.php b/portal/ticket_add.php index d788f723..e4fa4925 100644 --- a/portal/ticket_add.php +++ b/portal/ticket_add.php @@ -48,7 +48,7 @@ require_once('inc_portal.php');
- +