From 997bef41cf8672f37d0445671d1d4d8feb9e630f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 16 Aug 2021 12:18:38 -0600 Subject: [PATCH] Correct the str_replace --- secure/v_mailto.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secure/v_mailto.php b/secure/v_mailto.php index fd04a29fcd..3c712a49e4 100644 --- a/secure/v_mailto.php +++ b/secure/v_mailto.php @@ -238,7 +238,7 @@ } $mail->SMTPDebug = 2; -//add informaiton to the log +//add information to the log if (sizeof($headers)>0) { foreach ($headers as $header => $value) { echo $header.": ".$value."\n"; @@ -263,7 +263,7 @@ //add the reciepients $to = trim($to, "<>"); - $to = str_replace(" ", $to); + $to = str_replace(" ", "", $to); $to = str_replace(";", ",", $to); $to_array = explode(",", $to); if (count($to_array) == 0) {