Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Strip whitespace from args.Query when sanitizing it #348

Conversation

els0r
Copy link
Owner

@els0r els0r commented Sep 30, 2024

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.

Closes #347 .

@els0r els0r linked an issue Sep 30, 2024 that may be closed by this pull request
@els0r els0r merged commit 1b90821 into main Oct 1, 2024
7 checks passed
@els0r els0r deleted the 347-bugfix-make-sure-that-spaces-in-the-queryargsattributes-are-removed branch October 1, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugfix: make sure that spaces in the query.Args.Attributes are removed
1 participant