diff --git a/Template.php b/Template.php index 617e1f28ba..c72a40d3a9 100644 --- a/Template.php +++ b/Template.php @@ -978,7 +978,8 @@ public function add_if_new($param_name, $value, $api = NULL) { case 'type': if ($this->blank($param_name) && - !in_array(strtolower($value), ['text', 'data set'])) { + !in_array(strtolower($value), ['text', 'data set']) && + strlen($value) === mb_strlen($value)) { return $this->add($param_name, sanitize_string($value)); } return FALSE;