mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Change ereg() to preg_match() function
This commit is contained in:
parent
72c59dd82e
commit
3213b0966d
@ -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
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user