-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
The trim function from MB::S::Data::Utils first removes leading and trailing whitespace, then invalid characters. If the invalid character is a word by itself at the beginning or end of the string, e.g. "foo INVALID", the result will be "foo " (trailing whitespace), causing an internal server error because this string is rejected by the database. Instead, invalid characters should be removed first.