This fixes a bug where queries such as "sip, dip,dport" wouldn't be evaluated only because of the whitespace in them.
The implicit assumption was that this wouldn't happen if called from the command line (due to the arguments being evaluated as []string{..., "sip,", "dip,dport"}. For the json case, this is very much a valid way of passing the arguments.
Sanitization is applied both in goQuery (to local DB) and global-query.
This fixes a bug where queries such as
"sip, dip,dport"
wouldn't be evaluated only because of the whitespace in them.The implicit assumption was that this wouldn't happen if called from the command line (due to the arguments being evaluated as
[]string{..., "sip,", "dip,dport"}
. For thejson
case, this is very much a valid way of passing the arguments.Sanitization is applied both in goQuery (to local DB) and global-query.
Closes #347 .