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: 63,368Questions: 1Answers: 10,449 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.