Limit thread depth to avoid dos.

This commit is contained in:
Retro_Guy 2024-05-19 01:10:30 -07:00
parent 448275cdd8
commit 8a69265537
1 changed files with 3 additions and 0 deletions

View File

@ -2877,6 +2877,9 @@ function wrap_post($body)
$depth = 0;
while ($line[$depth] == '>') {
$depth ++;
if($depth > 30) {
break;
}
}
if (strlen($line) > $line_length) {
// HERE is where we wrap quoted lines (not so easy)