Whitespace+invalid character at the end of a string causes an ISE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2014-06-09
    • Affects Version/s: None
    • Component/s: 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.

            Assignee:
            Ulrich Klauer
            Reporter:
            Ulrich Klauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2014-06-09