ereg -> preg_match
This commit is contained in:
1 parent
7bfc0bb91b
commit
c05d81cf29
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user