Rule Parsing on update
Brought to you by:
jaalex
This is more of a "how can we make it better"... still
working on a way but you wanted these tracked:
parser.php
It explodes the rule options assuming that there will
be only a single space which sometimes is not the case
due to fat fingers
Line 26:
list ($rule['action'], $rule['proto'], $rule['src_ip'],
$rule['src_port'], $rule['operator'], $rule['dst_ip'],
$rule['dst_port'], $rule_options) = explode(' ',
ltrim($rule_line), 8);
I'm wondering if there isn't a more generic way to
parse that rule line without having to rely on spaces