Skip to content

Commit

Permalink
CRM_Utils_Type - Perform real validation on string/text values (variant
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Jul 21, 2021
1 parent e8c3a14 commit f28ea08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CRM/Utils/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,10 @@ public static function validate($data, $type, $abort = TRUE, $name = 'One of par
case 'Blob':
case 'Link':
case 'Memo':
return $data;
if (CRM_Utils_Rule::string($data)) {
return $data;
}
break;

case 'Date':
case 'Timestamp':
Expand Down

0 comments on commit f28ea08

Please sign in to comment.