From fa19776120d1f8d2b5dab2fd73fb4fef0cc30063 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 13 Jul 2023 10:45:09 +0800 Subject: [PATCH] - Remove htmlspecialchars for api data. --- framework/api/entry.class.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/framework/api/entry.class.php b/framework/api/entry.class.php index 1a486e1aa2..08eefb189a 100644 --- a/framework/api/entry.class.php +++ b/framework/api/entry.class.php @@ -450,12 +450,6 @@ class baseEntry $this->setPost($field, $value); } - - /* 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]); - } } /**