The aliases edit page says we allow the - and _ but the pattern did not match.
This commit is contained in:
Scott Ullrich 2007-04-28 19:44:30 +00:00
parent d73b38c47e
commit b7cb604258

View File

@ -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) {
}
}
?>
?>