summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-09-10 18:23:25 +0000
committerBill Marquette <billm@pfsense.org>2005-09-10 18:23:25 +0000
commit9d3f5df1b42ce3389e9e19864fdf33b9cee1cc1a (patch)
tree32cad628d51b0e15db8752f031bf43b7b24816e1 /etc
parent0c2badde5a90cfb9d4641d90d549cb4ebbb78274 (diff)
downloadpfsense-9d3f5df1b42ce3389e9e19864fdf33b9cee1cc1a.zip
pfsense-9d3f5df1b42ce3389e9e19864fdf33b9cee1cc1a.tar.gz
Return NULL if reserved word is matched (this wasn't a typo)
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud