From 71e304720f480c2da15ac963453a1c4e117b9054 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Mon, 12 Feb 2018 18:49:39 +0100 Subject: [PATCH] Patch for issue #13889 Fixes the issue #13889 Signed-off-by: William Desportes --- libraries/classes/Rte/Routines.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libraries/classes/Rte/Routines.php b/libraries/classes/Rte/Routines.php index 3ce7c57b22..8c5330c1d8 100644 --- a/libraries/classes/Rte/Routines.php +++ b/libraries/classes/Rte/Routines.php @@ -1202,10 +1202,12 @@ class Routines } if (! empty($_REQUEST['item_param_opts_text'][$i])) { if ($dbi->types->getTypeClass($item_param_type[$i]) == 'CHAR') { - $params .= ' CHARSET ' - . mb_strtolower( - $_REQUEST['item_param_opts_text'][$i] - ); + if(!in_array($item_param_type[$i],array("VARBINARY","BINARY"))){ + $params .= ' CHARSET ' + . mb_strtolower( + $_REQUEST['item_param_opts_text'][$i] + ); + } } } if (! empty($_REQUEST['item_param_opts_num'][$i])) {