mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 02:56:39 -04:00
20 lines
679 B
PHP
20 lines
679 B
PHP
--- externals/phpmailer/class.smtp.php.orig 2024-12-03 14:44:25 UTC
|
|
+++ externals/phpmailer/class.smtp.php
|
|
@@ -385,7 +385,7 @@ class SMTP {
|
|
|
|
$max_line_length = 998; // used below; set here for ease in change
|
|
|
|
- while(list(,$line) = @each($lines)) {
|
|
+ foreach($lines as $line) {
|
|
$lines_out = null;
|
|
if($line == "" && $in_headers) {
|
|
$in_headers = false;
|
|
@@ -414,7 +414,7 @@ class SMTP {
|
|
$lines_out[] = $line;
|
|
|
|
// send the lines to the server
|
|
- while(list(,$line_out) = @each($lines_out)) {
|
|
+ foreach($lines_out as $line_out) {
|
|
if(strlen($line_out) > 0)
|
|
{
|
|
if(substr($line_out, 0, 1) == ".") {
|