summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-04-27 14:29:53 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-04-27 14:29:53 +0000
commitbf903e99cc9db6935962b9a92e86130c48a919cc (patch)
tree8edab80bd8de3c165c8cf62043f2668fa18ca96a
parent12415bd807609df124bde7611d0b6cf563261e3d (diff)
downloadpfsense-bf903e99cc9db6935962b9a92e86130c48a919cc.zip
pfsense-bf903e99cc9db6935962b9a92e86130c48a919cc.tar.gz
Make sure is_validaliasname uses the same match rules as described in
the aliases edit page. e.g. support the use of - and _ as the error message states and HEAD also supports. MFC: Yes
-rw-r--r--etc/inc/util.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 0d2eea9..3557bba 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;
@@ -555,4 +555,4 @@ function mac_format($clientmac) {
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud