Uploaded image for project: 'Z-Push'
  1. Z-Push
  2. ZP-1199

Truncating emails can result in invalid strings

    Details

    • Type: Bug
    • Status: QA
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.3.5
    • Fix Version/s: 2.3.7 beta1, 2.3.7
    • Component/s: None
    • Security Level: Public (Everyone)
    • Labels:
      None

      Description

      Reported at: https://forum.kopano.io/topic/182

      Seems as multi-byte characters are "cut in the middle" when truncating (German). This probably causes iOS to break on wbxml decoding and to loop (and ignore) the email.

      Preliminary tests using mb_strimwidth() in Utils::Utf8_truncate() have fixed the issue for Richard.

      return mb_strimwidth($string, 0, $length);
      

      Still, the truncated string presented a "?" at the end using mb_strimwidth().

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Sebastian Sebastian Kummer
                  Reporter:
                  Marschik Richard
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: