Fix possible null param to explode, fixes #2760

This commit is contained in:
Marcus Bointon 2022-09-02 23:35:46 +02:00
parent 65661bcf15
commit 21768617e2
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 3 additions and 0 deletions

View File

@ -2101,6 +2101,9 @@ class PHPMailer
$this->smtp->setDebugLevel($this->SMTPDebug);
$this->smtp->setDebugOutput($this->Debugoutput);
$this->smtp->setVerp($this->do_verp);
if ($this->Host === null) {
$this->Host = 'localhost';
}
$hosts = explode(';', $this->Host);
$lastexception = null;