From c05d81cf293f75602f6fafe0c17e300b4e52788e Mon Sep 17 00:00:00 2001 From: gnuboard Date: Thu, 5 Dec 2013 15:06:57 +0900 Subject: [PATCH] ereg -> preg_match --- plugin/PHPMailer_v2.0.4/class.phpmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/PHPMailer_v2.0.4/class.phpmailer.php b/plugin/PHPMailer_v2.0.4/class.phpmailer.php index a943219c1..9214dbc9b 100644 --- a/plugin/PHPMailer_v2.0.4/class.phpmailer.php +++ b/plugin/PHPMailer_v2.0.4/class.phpmailer.php @@ -591,7 +591,7 @@ class PHPMailer { /* Retry while there is no connection */ while($index < count($hosts) && $connection == false) { $hostinfo = array(); - if(eregi('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) { + if(preg_match('/^(.+):([0-9]+)$/i', $hosts[$index], $hostinfo)) { $host = $hostinfo[1]; $port = $hostinfo[2]; } else {