Skip to content

Commit

Permalink
fixup! Use fgets and detect partial line reads
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Feb 27, 2021
1 parent ff39b80 commit 2e17655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocol/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public function data($data)
$line = substr(chunk_split($line, 998, Headers::FOLDING), 0, -strlen(Headers::FOLDING));
}

$this->send($line);
$this->_send($line);
}

fclose($fp);
Expand Down

0 comments on commit 2e17655

Please sign in to comment.