From d55ce7d3e47772ab9cc3551bfd8667ba21efdad0 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 4 Jul 2023 15:38:37 +0800 Subject: [PATCH] * Change html data save rule. --- framework/api/entry.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/api/entry.class.php b/framework/api/entry.class.php index ba4e8dc7aa..63cdc326b1 100644 --- a/framework/api/entry.class.php +++ b/framework/api/entry.class.php @@ -454,7 +454,7 @@ class baseEntry /* Use htmlspecialcharts for rich text fields. */ foreach($fields as $field) { - if(in_array($field, array('desc', 'spec', 'verify', 'steps')) and isset($_POST[$field])) $_POST[$field] = htmlspecialchars($_POST[$field]); + if(in_array($field, array('desc', 'spec', 'verify', 'steps')) and isset($_POST[$field])) $_POST[$field] = htmlspecialchars_decode($_POST[$field]); } }