From beeef1f0f77f5b83a8bad0ea61b90e2a08a7235a Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Mon, 5 Sep 2005 01:29:19 +0000 Subject: (#458) create reserved word list - we'll stumble over more reserved words in the future --- etc/inc/util.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc') diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 24b84ce..f4661ce 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -206,6 +206,11 @@ function is_macaddr($macaddr) { /* returns true if $name is a valid name for an alias */ function is_validaliasname($name) { + /* Array of reserved words */ + $reserved = array("port"); + if (in_array($name, $reserved)) + return -1; + if (!preg_match("/[^a-zA-Z0-9]/", $name)) return true; else -- cgit v1.1