summaryrefslogtreecommitdiff
path: root/templates/posts.sql
diff options
context:
space:
mode:
authorMacil Tech <maciltech@gmail.com>2013-01-18 18:10:14 -0600
committerMacil Tech <maciltech@gmail.com>2013-01-18 18:26:25 -0600
commitb63d94838da090cddb98f1b7f19268a32c6a75d8 (patch)
tree70989c2cf770cde5f1cea7ec2b642ee97a683342 /templates/posts.sql
parent948dfe8555e06b2f900a92678faff918c2ab95b6 (diff)
Do truncation by actual character count.
Using substr can cut a multi-byte character in half. Also, if a long post with many multi-byte characters was reported, then the mod interface would temporarily extend the body_truncate_char setting to be sure to cover all of the *characters* in the report, but this function would interpret body_truncate_char as a number of *bytes*, so sometimes the end of the report's appended html would be cut off.
Diffstat (limited to 'templates/posts.sql')
0 files changed, 0 insertions, 0 deletions