From b7cb604258a3e98e8d7401112f12d7aaa829eb71 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 28 Apr 2007 19:44:30 +0000 Subject: [PATCH] MFC The aliases edit page says we allow the - and _ but the pattern did not match. --- etc/inc/util.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 8af4444c70..54dbafcef4 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -215,7 +215,7 @@ function is_validaliasname($name) { if (in_array($name, $reserved, true)) return; /* return NULL */ - if (!preg_match("/[^a-zA-Z0-9]/", $name)) + if (!preg_match("/[^a-zA-Z0-9\-_]/", $name)) return true; else return false; @@ -563,4 +563,4 @@ function mac_format($clientmac) { } } -?> \ No newline at end of file +?>