Kent
Active member
Someone had the bright idea to make their "about" field a giant blob of stacking diacritics, which went over the hard-coded limit of 65535 characters.
Stacking diacritics look like this, and can be posted fine when under the character limit:
When submitting a message of only those characters repeated beyond the character limit, this error occurs:
When submitting the same message prefixed by a single-byte character, this error occurs:
After poking around, it seems the TEXT max length is 65535 bytes, but XenForo is splitting the string by characters.
Stacking diacritics look like this, and can be posted fine when under the character limit:
Code:
ก็็็็็็็็็็็็็็็็็็็็กิิิิิิิิิิิิิิิิิิิิก้้้้้้้้้้้้้้้
When submitting a message of only those characters repeated beyond the character limit, this error occurs:
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Data too long for column 'about' at row 1 - library/Zend/Db/Statement/Mysqli.php:214
When submitting the same message prefixed by a single-byte character, this error occurs:
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Incorrect string value: '\xE0\xB8\x81\xE0\xB9\x87...' for column 'about' at row 1 - library/Zend/Db/Statement/Mysqli.php:214
After poking around, it seems the TEXT max length is 65535 bytes, but XenForo is splitting the string by characters.