Fixed A file name "with" 100 characters and RTL

Moshe1010

Well-known member
Licensed customer
Possible RTL problem or it could be in other languages as well.

Try to upload a file with the name:
זהו שם קובץ מאוד ארוך שבודק דברים חסרי תועלת כמו תמיד

By:
http://www.wordcounter.net/

It has 53 characters, but I get the following error:

Image   XenForo Community.webp
 
Perhaps those characters are double bytes so the software counts them as 53*2=106 ?
Database wise that's correct. But if this is really what generates this error and not the verification process itself, then the error message isn't really accurate.
 
Accidentally using strlen() rather than utf8_strlen() here, so it was counting bytes rather than characters.
 
Back
Top Bottom