sysutils/nut: only allow specific chars as name (#1631)

This commit is contained in:
Michael
2019-12-21 09:36:39 +01:00
committed by Franco Fichtner
parent 0b2e43745c
commit 70a00f65b3
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= nut
PLUGIN_VERSION= 1.6
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_COMMENT= Network UPS Tools
PLUGIN_DEPENDS= nut
PLUGIN_MAINTAINER= m.muenz@gmail.com
@@ -19,6 +19,8 @@
<name type="TextField">
<default>UPSName</default>
<Required>Y</Required>
<mask>/^([0-9a-zA-Z._\-]){1,128}$/u</mask>
<ValidationMessage>The name should only contain alphanumeric characters, dashes, underscores or a dot.</ValidationMessage>
</name>
<listen type="CSVListField">
<default>127.0.0.1,::1</default>