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
ee0e0eae
Commit
ee0e0eae
authored
Feb 12, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: improve validation on previous
parent
c7ac2083
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
firewall_rules_edit.php
src/www/firewall_rules_edit.php
+3
-3
No files found.
src/www/firewall_rules_edit.php
View file @
ee0e0eae
...
...
@@ -387,15 +387,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors
[]
=
gettext
(
"If you specify TCP flags that should be set you should specify out of which flags as well."
);
if
(
!
empty
(
$pconfig
[
'set-prio'
])
&&
(
!
is_numericint
(
$pconfig
[
'set-prio'
])
||
$pconfig
[
'set-prio'
]
<
0
||
$pconfig
[
'set-prio'
]
>
7
))
{
if
(
isset
(
$pconfig
[
'set-prio'
])
&&
$pconfig
[
'set-prio'
]
!==
''
&&
(
!
is_numericint
(
$pconfig
[
'set-prio'
])
||
$pconfig
[
'set-prio'
]
<
0
||
$pconfig
[
'set-prio'
]
>
7
))
{
$input_errors
[]
=
gettext
(
'Set priority must be an integer between 0 and 7.'
);
}
if
(
!
empty
(
$pconfig
[
'set-prio-low'
])
&&
(
!
is_numericint
(
$pconfig
[
'set-prio-low'
])
||
$pconfig
[
'set-prio-low'
]
<
0
||
$pconfig
[
'set-prio-low'
]
>
7
))
{
if
(
isset
(
$pconfig
[
'set-prio-low'
])
&&
$pconfig
[
'set-prio-low'
]
!==
''
&&
(
!
is_numericint
(
$pconfig
[
'set-prio-low'
])
||
$pconfig
[
'set-prio-low'
]
<
0
||
$pconfig
[
'set-prio-low'
]
>
7
))
{
$input_errors
[]
=
gettext
(
'Set priority for low latency and acknowledgements must be an integer between 0 and 7.'
);
}
if
(
empty
(
$pconfig
[
'set-prio'
])
&&
!
empty
(
$pconfig
[
'set-prio-low'
]
))
{
if
(
isset
(
$pconfig
[
'set-prio-low'
])
&&
$pconfig
[
'set-prio-low'
]
!==
''
&&
(
!
isset
(
$pconfig
[
'set-prio'
])
||
$pconfig
[
'set-prio'
]
===
''
))
{
$input_errors
[]
=
gettext
(
'Set priority for low latency and acknowledgements requires a set priority for normal packets.'
);
}
...
...
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