From: Eric Leblond Date: Wed, 1 Aug 2012 09:04:37 +0000 (+0200) Subject: tls: fix keyword regular expression X-Git-Tag: suricata-1.3.1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ebc625711e38e9800384289937be82456817cf8;p=thirdparty%2Fsuricata.git tls: fix keyword regular expression Space, dash and comma are valid. --- diff --git a/src/detect-tls.c b/src/detect-tls.c index b539b12512..110f775391 100644 --- a/src/detect-tls.c +++ b/src/detect-tls.c @@ -63,7 +63,7 @@ /** * \brief Regex for parsing "id" option, matching number or "number" */ -#define PARSE_REGEX "^\\s*(\\!*)\\s*([A-z0-9\\.=\\*]+|\"[A-z0-9\\.\\*= ]+\")\\s*$" +#define PARSE_REGEX "^\\s*(\\!*)\\s*([A-z0-9\\s\\-\\.=,\\*]+|\"[A-z0-9\\s\\-\\.=,\\*]+\")\\s*$" static pcre *subject_parse_regex; static pcre_extra *subject_parse_regex_study;