Cleanup
This commit is contained in:
parent
26371755e6
commit
10a6e3ec25
|
|
@ -1288,7 +1288,7 @@ class PHPMailer
|
|||
*/
|
||||
public function setFrom($address, $name = '', $auto = true)
|
||||
{
|
||||
$address = trim((string) $address); //trim(): Passing null to parameter #1 ($string) of type string is deprecated from PHP8.1 ...
|
||||
$address = trim((string)$address);
|
||||
$name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
|
||||
//Don't validate now addresses with IDN. Will be done in send().
|
||||
$pos = strrpos($address, '@');
|
||||
|
|
|
|||
Loading…
Reference in New Issue