Multibyte strlen for Editor

Multibyte strlen for Editor

gboussingboussin Posts: 13Questions: 4Answers: 0

Dear all,

In Editor last version, in Editor/Validate.php, the functions minLen and maxLen use strlen instead of a multibyte version of strlen, thus if using UTF8 the letter with accents count for 2, and validation fails.

Regards,

Gilles Boussin

Replies

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Hi Gilles,

    Good point - thanks for noting that. I've added a bug to our tracker for that to be fixed in the next patch of Editor (1.8.2).

    Allan

  • gboussingboussin Posts: 13Questions: 4Answers: 0

    Thanks

This discussion has been closed.