Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
5faccb88
Commit
5faccb88
authored
Jul 31, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Aug 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cron/ids/proxy/trafficshaper) add additional text validation
parent
02f56188
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
Cron.xml
src/opnsense/mvc/app/models/OPNsense/Cron/Cron.xml
+1
-1
IDS.xml
src/opnsense/mvc/app/models/OPNsense/IDS/IDS.xml
+1
-1
Proxy.xml
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
+2
-1
TrafficShaper.xml
...e/mvc/app/models/OPNsense/TrafficShaper/TrafficShaper.xml
+3
-2
No files found.
src/opnsense/mvc/app/models/OPNsense/Cron/Cron.xml
View file @
5faccb88
...
...
@@ -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>
...
...
src/opnsense/mvc/app/models/OPNsense/IDS/IDS.xml
View file @
5faccb88
...
...
@@ -20,7 +20,7 @@
<file
type=
"ArrayField"
>
<filename
type=
"TextField"
>
<Required>
Y
</Required>
<
Mask>
/^(.){1,255}$/
</M
ask>
<
mask>
/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u
</m
ask>
</filename>
<enabled
type=
"BooleanField"
>
<default>
0
</default>
...
...
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
View file @
5faccb88
...
...
@@ -219,7 +219,7 @@
</url>
<description
type=
"TextField"
>
<Required>
Y
</Required>
<
Mask>
/^(.){1,255}$/
</M
ask>
<
mask>
/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u
</m
ask>
</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"
>
...
...
src/opnsense/mvc/app/models/OPNsense/TrafficShaper/TrafficShaper.xml
View file @
5faccb88
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment