Skip to content

Commit

Permalink
No international characters in type= (#2164)
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann committed Sep 25, 2019
1 parent 2d64546 commit b8017e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b8017e6

Please sign in to comment.