From 4a1f61d759a0f6fccb9329e98fdaba20039b156c Mon Sep 17 00:00:00 2001 From: Tim Otte Date: Mon, 16 Nov 2020 11:12:43 +0100 Subject: [PATCH 1/2] Fix for #15423 --- htdocs/core/class/extrafields.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index b2f8905aba9..e68ef5420de 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -2025,7 +2025,7 @@ class ExtraFields $value_arr = GETPOST("options_".$key, 'alpha'); $value_key = price2num($value_arr); } elseif (in_array($key_type, array('html'))) { - $value_key = GETPOST("options_".$key, 'alpha'); + $value_key = GETPOST("options_".$key, 'none'); } elseif (in_array($key_type, array('text'))) { $value_key = GETPOST("options_".$key, 'alphanohtml'); } else { From a5a7197506f86df76a1a6e082023db2b5bf582a2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Nov 2020 12:45:37 +0100 Subject: [PATCH 2/2] Update extrafields.class.php --- htdocs/core/class/extrafields.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index e68ef5420de..60ec9c6f6b4 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -2025,7 +2025,7 @@ class ExtraFields $value_arr = GETPOST("options_".$key, 'alpha'); $value_key = price2num($value_arr); } elseif (in_array($key_type, array('html'))) { - $value_key = GETPOST("options_".$key, 'none'); + $value_key = GETPOST("options_".$key, 'restricthtml'); } elseif (in_array($key_type, array('text'))) { $value_key = GETPOST("options_".$key, 'alphanohtml'); } else {