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

Fix variables parser when loading rules #855

Merged
merged 3 commits into from Jul 2, 2018
Merged

Fix variables parser when loading rules #855

merged 3 commits into from Jul 2, 2018

Conversation

chemamartinez
Copy link
Contributor

This PR solves the issue #845.

Since it is possible to add variables to the rules description whit the format $(variable) it is treated as a variable defined in the same rule file, in the way <var name="XXX">YYY</var>.

So the variable is not recognized due to it is not defined previously. Simply, we skip now the check for static variables defined in the rules which starts with (.

@chemamartinez chemamartinez added the type/bug Something isn't working label Jun 27, 2018
@chemamartinez chemamartinez requested a review from bah07 June 27, 2018 09:27
@chemamartinez chemamartinez added this to In review in Wazuh TBD via automation Jun 27, 2018
@bah07 bah07 merged commit c407d89 into 3.3 Jul 2, 2018
Wazuh TBD automation moved this from In review to Done Jul 2, 2018
@bah07 bah07 deleted the fix-rules-descript branch July 2, 2018 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants