Fix for SC122

This commit is contained in:
moodler
2005-05-31 04:34:06 +00:00
parent 7bc05d58b7
commit f74a733d0d
+7
View File
@@ -332,6 +332,13 @@ class SMTP
# smaller lines
while(strlen($line) > $max_line_length) {
$pos = strrpos(substr($line,0,$max_line_length)," ");
// Fix from http://www.addict3d.org/index.php?page=viewarticle&type=security&ID=4079
if (!$pos) {
$pos = $max_line_length - 1;
}
// End of fix
$lines_out[] = substr($line,0,$pos);
$line = substr($line,$pos + 1);
# if we are processing headers we need to