From 932c99de1644b475b522c2445746d6ba93a14e3e Mon Sep 17 00:00:00 2001 From: David Date: Fri, 11 Mar 2022 09:37:19 +0100 Subject: [PATCH] [Accident] fix: saving \n twice within accident description --- view/accident/accident_card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/accident/accident_card.php b/view/accident/accident_card.php index 835cb9ec8..164e2ba0d 100644 --- a/view/accident/accident_card.php +++ b/view/accident/accident_card.php @@ -131,7 +131,7 @@ $user_employer_id = GETPOST('fk_user_employer'); $digiriskelement_id = GETPOST('fk_element'); $label = GETPOST('label'); - $description = GETPOST('description'); + $description = GETPOST('description', 'restricthtml'); $accident_type = GETPOST('accident_type'); $external_accident = GETPOST('external_accident'); $accident_location = GETPOST('accident_location'); @@ -237,7 +237,7 @@ $user_employer_id = GETPOST('fk_user_employer'); $digiriskelement_id = GETPOST('fk_element'); $label = GETPOST('label'); - $description = GETPOST('description'); + $description = GETPOST('description', 'restricthtml'); $accident_type = GETPOST('accident_type'); $external_accident = GETPOST('external_accident'); $accident_location = GETPOST('accident_location');