diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-24 15:42:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-24 15:42:09 +0000 |
commit | 98e9e3d59cad9c2ff3781867329dba062d0dadec (patch) | |
tree | a84d9a33ecf2862da56f3247663506902450728c /etc | |
parent | 8f498445161ab9be7495bf62c50c866a1f3ca59f (diff) | |
download | pfsense-98e9e3d59cad9c2ff3781867329dba062d0dadec.zip pfsense-98e9e3d59cad9c2ff3781867329dba062d0dadec.tar.gz |
Relax is_domain() checks to include _
http://forum.pfsense.org/index.php?topic=904.0;topicseen
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/util.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 3774090..d94e82f 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -171,7 +171,7 @@ function is_domain($domain) { if (!is_string($domain)) return false; - if (preg_match("/^([a-z0-9\-]+\.?)*$/i", $domain)) + if (preg_match("/^([_a-z0-9\-]+\.?)*$/i", $domain)) return true; else return false; |