Actions
Bug #4922
closedNut Settings Page - PHP Config nut.inc - Field Validation Fails
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Nut
Target version:
-
Start date:
08/05/2015
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
2.2.x
Affected Plus Version:
Affected Architecture:
Description
Original issue:
PfSense 2.2.3 and 2.2.4, install Nut 2.0.5.
Go to configure as 'Remote NUT Ups', fill in fields under 'Remote NUT UPS Settings'. Submit page.
Error 'Only [Aa-Zz], [0-9], and [-_] accepted in the 'Remote UPS Name' field' results regardless of what is entered.
Fix:
File /usr/local/pkg/nut.inc line 129:
Change:
if ($post['remotename'] && !preg_match("/^[a-zA-Z0-9-_]+$/", $post['name'])) {
to:
if ($post['remotename'] && !preg_match("/^[a-zA-Z0-9-_]+$/", $post['remotename'])) {
Updated by Kill Bill almost 10 years ago
Updated by Chris Buechler almost 10 years ago
- Status changed from New to Resolved
- Target version deleted (
2.2.5)
Actions