Merge branch 'master' of github.com:gnuboard/g5

This commit is contained in:
whitedot
2013-12-05 16:18:41 +09:00

View File

@ -591,7 +591,7 @@ class PHPMailer {
/* Retry while there is no connection */ /* Retry while there is no connection */
while($index < count($hosts) && $connection == false) { while($index < count($hosts) && $connection == false) {
$hostinfo = array(); $hostinfo = array();
if(eregi('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) { if(preg_match('/^(.+):([0-9]+)$/i', $hosts[$index], $hostinfo)) {
$host = $hostinfo[1]; $host = $hostinfo[1];
$port = $hostinfo[2]; $port = $hostinfo[2];
} else { } else {