Added
Link Here
|
1 |
--- externals/phpmailer/class.smtp.php.orig 2024-07-30 15:40:58 UTC |
2 |
+++ externals/phpmailer/class.smtp.php |
3 |
@@ -385,7 +385,7 @@ class SMTP { |
4 |
|
5 |
$max_line_length = 998; // used below; set here for ease in change |
6 |
|
7 |
- while(list(,$line) = @each($lines)) { |
8 |
+ foreach ($lines as $i => $line) { |
9 |
$lines_out = null; |
10 |
if($line == "" && $in_headers) { |
11 |
$in_headers = false; |
12 |
@@ -414,7 +414,7 @@ class SMTP { |
13 |
$lines_out[] = $line; |
14 |
|
15 |
// send the lines to the server |
16 |
- while(list(,$line_out) = @each($lines_out)) { |
17 |
+ foreach ($lines_out as $i => $line_out) { |
18 |
if(strlen($line_out) > 0) |
19 |
{ |
20 |
if(substr($line_out, 0, 1) == ".") { |