Change ereg() to preg_match() function

This commit is contained in:
ccesario 2012-06-30 10:03:10 -03:00
parent 72c59dd82e
commit 3213b0966d

View File

@ -223,7 +223,7 @@ class smtp_class
|| !extension_loaded("openssl"))
return(gettext("establishing SSL connections requires the OpenSSL extension enabled"));
}
if(ereg('^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$',$domain))
if(preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/',$domain))
$ip=$domain;
else
{