mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 07:36:48 +02:00
Correct LENGTH column validation
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
98f8edbde5
commit
c1d0681e17
@ -4206,10 +4206,10 @@ sub do_length( $ ) {
|
||||
|
||||
require_capability( 'LENGTH_MATCH' , 'A Non-empty LENGTH' , 's' );
|
||||
|
||||
fatal_error "Invalid LENGTH ($length)" unless $length =~/^(\d+)(:(\d+))$/;
|
||||
fatal_error "Invalid LENGTH ($length)" unless $length =~/^(\d+)(:(\d+))?$/;
|
||||
|
||||
if ( supplied $3 ) {
|
||||
fatal_error "First length must be < second length" unless $1 < $2;
|
||||
if ( supplied $2 ) {
|
||||
fatal_error "First length must be < second length" unless $1 < $3;
|
||||
}
|
||||
|
||||
"-m length --length $length ";
|
||||
|
Loading…
x
Reference in New Issue
Block a user