Skip to content

Infinite loop with long strings in help messages

Created by: lorman

There is an error that causes an infinite loop and memory leak when asked to display a help message with a long string without spaces to split on.

This is in Help.php Line:321.

The fix was to check if $p is less then the padding $columnWidth + 3.

So adding this fixed the issue:

if ($p <= $columnWidth+3) $p = mb_strlen($row);