detect-parse: simplify port prefiltering

Regular expression was not matching some authorized setting like
"![1234, 1235]". This patch simplify the regexp to match on
possible character and let the port parsing code handle the
complete verification.
pull/2489/head
Eric Leblond 9 years ago committed by Victor Julien
parent b0de5ad1a8
commit 5b1de57d73

@ -104,11 +104,7 @@ typedef struct SigDuplWrapper_ {
")"
/* if enclosed in [], spaces are allowed */
#define CONFIG_PCRE_PORT "(" \
"[\\:A-z0-9_\\$\\!,]+"\
"|"\
"\\[[\\:A-z0-9_\\$\\!,\\s]+\\]"\
")"
#define CONFIG_PCRE_PORT "([\\[\\]\\:A-z0-9_\\$\\!,\\s]+)"
/* format: action space(s) protocol spaces(s) src space(s) sp spaces(s) dir spaces(s) dst spaces(s) dp spaces(s) options */
#define CONFIG_PCRE "^([A-z]+)\\s+([A-z0-9\\-]+)\\s+" \

Loading…
Cancel
Save