Further rewrites due to deprecated functions in 5.3.1
[mailer.git] / inc / phpmailer / class.phpmailer.php
index 6939fc2c8a3320ec239cabec75936aa0b6491c46..6fa18175b13f798bb2579e625ad07b668610fa76 100644 (file)
@@ -589,7 +589,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(isInStringIgnoreCase('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) {
         $host = $hostinfo[1];
         $port = $hostinfo[2];
       } else {