Replaced ereg_replace with str_replace on several occasions, should be faster.
[squirrelmail.git] / src / compose.php
index 37a15656dc083e350c2006878a511fdd885dba9f..749a542ba86679060474bb78348ae23c30d782b1 100644 (file)
@@ -330,7 +330,7 @@ function newMail () {
     /* This formats a CC string if they hit "reply all" */
     if ($send_to_cc != '') {
         $send_to_cc = ereg_replace('"[^"]*"', '', $send_to_cc);
-        $send_to_cc = ereg_replace(';', ',', $send_to_cc);
+        $send_to_cc = str_replace(';', ',', $send_to_cc);
         $sendcc = explode(',', $send_to_cc);
         $send_to_cc = '';