Following on from the discussion in #1665304: SQL error if subject too long.

I have tried this patch on my site and it works. It limits the number of characters in the subject to 64 rather than 29, and correctly adds the dots - the fourth argument to truncate_utf8() needs to be TRUE. I also removed the if statement since truncate_uft8() has a similar if statement in it using drupal_strlen() which correctly handles multibyte strings.

Comments

rob230’s picture

Status: Active » Needs review
StatusFileSize
new655 bytes

Sorry, here's the patch.

danepowell’s picture

Status: Needs review » Needs work

Trying to trigger testing

danepowell’s picture

Status: Needs work » Needs review
danepowell’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

grammar

raj45’s picture

Issue summary: View changes

Thanks for making this patch, it works fine.