From 9d3f5df1b42ce3389e9e19864fdf33b9cee1cc1a Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sat, 10 Sep 2005 18:23:25 +0000 Subject: Return NULL if reserved word is matched (this wasn't a typo) --- etc/inc/util.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/util.inc b/etc/inc/util.inc index c7f6473..1bd597d 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -209,7 +209,7 @@ function is_validaliasname($name) { /* Array of reserved words */ $reserved = array("port", "pass"); if (in_array($name, $reserved, true)) - return -1; + return; if (!preg_match("/[^a-zA-Z0-9]/", $name)) return true; -- cgit v1.1