aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-08-08 01:35:05 -0500
committerChris Buechler <cmb@pfsense.org>2015-08-08 01:35:05 -0500
commit5b849cf727936b38cbbeda16f7999d23cf8c1804 (patch)
tree983349f39e2b012cb9cdbd002a44255a87371cc6 /config
parent6718a83c45ee96b5e4e9fc916c8fd65d80ab9335 (diff)
parentfc2b8d14851046762023bb0b26a3f3338953bbfd (diff)
downloadpfsense-packages-5b849cf727936b38cbbeda16f7999d23cf8c1804.tar.gz
pfsense-packages-5b849cf727936b38cbbeda16f7999d23cf8c1804.tar.bz2
pfsense-packages-5b849cf727936b38cbbeda16f7999d23cf8c1804.zip
Merge pull request #939 from doktornotor/patch-6
Diffstat (limited to 'config')
-rw-r--r--config/nut/nut.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/nut/nut.inc b/config/nut/nut.inc
index dae2269e..578bb82f 100644
--- a/config/nut/nut.inc
+++ b/config/nut/nut.inc
@@ -126,7 +126,7 @@
if (!$post['remotename']) {
$input_errors[] = 'You must specify a name in the \'Remote UPS Name\' field';
}
- if ($post['remotename'] && !preg_match("/^[a-zA-Z0-9-_]+$/", $post['name'])) {
+ if ($post['remotename'] && !preg_match("/^[a-zA-Z0-9-_]+$/", $post['remotename'])) {
$input_errors[] = 'Only [Aa-Zz], [0-9], and [-_] accepted in the \'Remote UPS Name\' field';
}
if (!$post['remoteaddr'] || !is_ipaddr($post['remoteaddr'])) {