Closed quiiver closed 10 years ago
I've never encountered the problem so thanks for the fix, this also seems to be a much nicer way of doing things. Thank you!
@rickihastings you probably don't have people sending 2048 char urls into channels :D
Yep definitely not :laughing:
We were running into a bug where the truncate code would get stuck in an infinite loop if the last word was > the max length (like a really long url). This is a simpler truncation that is respective of multibyte strings and uses recursion instead of a while loop.