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 @@ ...@@ -62,7 +62,7 @@
<Required>N</Required> <Required>N</Required>
</parameters> </parameters>
<description type="TextField"> <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> <ValidationMessage>Enter a description.</ValidationMessage>
<Required>Y</Required> <Required>Y</Required>
</description> </description>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<file type="ArrayField"> <file type="ArrayField">
<filename type="TextField"> <filename type="TextField">
<Required>Y</Required> <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> </filename>
<enabled type="BooleanField"> <enabled type="BooleanField">
<default>0</default> <default>0</default>
......
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
</url> </url>
<description type="TextField"> <description type="TextField">
<Required>Y</Required> <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> </description>
</blacklist> </blacklist>
</blacklists> </blacklists>
...@@ -250,6 +250,7 @@ ...@@ -250,6 +250,7 @@
</method> </method>
<realm type="TextField"> <realm type="TextField">
<default>OPNsense proxy authentication</default> <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> <Required>N</Required>
</realm> </realm>
<credentialsttl type="IntegerField"> <credentialsttl type="IntegerField">
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</origin> </origin>
<description type="TextField"> <description type="TextField">
<Required>Y</Required> <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> <ValidationMessage>Description should be a string between 1 and 255 characters</ValidationMessage>
</description> </description>
</pipe> </pipe>
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</mask> </mask>
<description type="TextField"> <description type="TextField">
<Required>Y</Required> <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> <ValidationMessage>Description should be a string between 1 and 255 characters</ValidationMessage>
</description> </description>
<origin type="TextField"> <origin type="TextField">
...@@ -202,6 +202,7 @@ ...@@ -202,6 +202,7 @@
</target> </target>
<description type="TextField"> <description type="TextField">
<Required>N</Required> <Required>N</Required>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){0,255}$/u</mask>
</description> </description>
<origin type="TextField"> <origin type="TextField">
<Required>N</Required> <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