Fix for SC122
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user