limestonenetworks/statuspage — pull request #1 by tomvachon (2012-12-05 15:22:36+00:00)
Title: Fix logic around message truncation

In the old logic, if 137 did not appear in "$pos = array_keys($words);" it would fail completely and just put up "..." as the message.

Using the wordwrap function and taking only the first value ensures you always get a full word as close to the desired length as possible and reduces overal complexity.