summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-01 20:56:55 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-01 20:56:55 +0000
commitab72b53b9be62fd723a9ed921a326bd02c9dcc3a (patch)
tree2793eabb365685d6ba7d1c6fe8ab2a204ee127c2 /usr
parentd5bc23324e2ab994d04625fed5c8b6a8cfc0a293 (diff)
downloadpfsense-ab72b53b9be62fd723a9ed921a326bd02c9dcc3a.zip
pfsense-ab72b53b9be62fd723a9ed921a326bd02c9dcc3a.tar.gz
Allow _ chars.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces_opt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index 07dfe32..8183558 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -42,7 +42,7 @@ if (!$index)
exit;
function remove_bad_chars($string) {
- return preg_replace('/[^a-z|0-9]/i','',$string);
+ return preg_replace('/[^a-z|_|0-9]/i','',$string);
}
$optcfg = &$config['interfaces']['opt' . $index];
OpenPOWER on IntegriCloud