Commit 5faccb88 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(cron/ids/proxy/trafficshaper) add additional text validation

parent 02f56188
......@@ -62,7 +62,7 @@
<Required>N</Required>
</parameters>
<description type="TextField">
<mask>/^(.){1,255}$/</mask>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
<ValidationMessage>Enter a description.</ValidationMessage>
<Required>Y</Required>
</description>
......
......@@ -20,7 +20,7 @@
<file type="ArrayField">
<filename type="TextField">
<Required>Y</Required>
<Mask>/^(.){1,255}$/</Mask>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
</filename>
<enabled type="BooleanField">
<default>0</default>
......
......@@ -219,7 +219,7 @@
</url>
<description type="TextField">
<Required>Y</Required>
<Mask>/^(.){1,255}$/</Mask>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
</description>
</blacklist>
</blacklists>
......@@ -250,6 +250,7 @@
</method>
<realm type="TextField">
<default>OPNsense proxy authentication</default>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){0,255}$/u</mask>
<Required>N</Required>
</realm>
<credentialsttl type="IntegerField">
......
......@@ -58,7 +58,7 @@
</origin>
<description type="TextField">
<Required>Y</Required>
<mask>/^(.){1,255}$/</mask>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
<ValidationMessage>Description should be a string between 1 and 255 characters</ValidationMessage>
</description>
</pipe>
......@@ -104,7 +104,7 @@
</mask>
<description type="TextField">
<Required>Y</Required>
<mask>/^(.){1,255}$/</mask>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
<ValidationMessage>Description should be a string between 1 and 255 characters</ValidationMessage>
</description>
<origin type="TextField">
......@@ -202,6 +202,7 @@
</target>
<description type="TextField">
<Required>N</Required>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){0,255}$/u</mask>
</description>
<origin type="TextField">
<Required>N</Required>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment