Project

General

Profile

Actions

Bug #4922

closed

Nut Settings Page - PHP Config nut.inc - Field Validation Fails

Added by David Stillman almost 10 years ago. Updated almost 10 years ago.

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'])) {

Actions #2

Updated by Kill Bill almost 10 years ago

Merged and working again.

Actions #3

Updated by David Stillman almost 10 years ago

Awesome, thanks!

Actions #4

Updated by Chris Buechler almost 10 years ago

  • Status changed from New to Resolved
  • Target version deleted (2.2.5)
Actions

Also available in: Atom PDF