1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed A file name "with" 100 characters and RTL

Discussion in 'Resolved Bug Reports' started by Moshe1010, Feb 11, 2014.

  1. Moshe1010

    Moshe1010 Well-Known Member

    Possible RTL problem or it could be in other languages as well.

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


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

    Image   XenForo Community.jpeg
  2. whynot

    whynot Well-Known Member

    Perhaps those characters are double bytes so the software counts them as 53*2=106 ?
  3. Moshe1010

    Moshe1010 Well-Known Member

    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.
  4. Mike

    Mike XenForo Developer Staff Member

    Accidentally using strlen() rather than utf8_strlen() here, so it was counting bytes rather than characters.
    Moshe1010 likes this.

Share This Page