aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-06 06:28:41 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-06 06:28:41 +0200
commitf6846a47d42e28de8b1e01d156857b3089c692bd (patch)
treee26b7f7cafec8e2d20a003c256e690c9fafb8a61 /config
parentbad0f316bf513e8a7b61646ceb2e1ddb3bf2b03d (diff)
downloadpfsense-packages-f6846a47d42e28de8b1e01d156857b3089c692bd.tar.gz
pfsense-packages-f6846a47d42e28de8b1e01d156857b3089c692bd.tar.bz2
pfsense-packages-f6846a47d42e28de8b1e01d156857b3089c692bd.zip
Fix remotename validation (Bug #4922)
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'])) {