Skip to content

Conversation

pyth0n1c
Copy link
Contributor

@pyth0n1c pyth0n1c commented Sep 26, 2024

This PR has been copied from the following external pr contributed by @ryanplasma:
#233

This change includes some more documentation on the Explanation field.
Additionally, it fixes a bug where the explanation field is defined, newlines in it are
not properly escaped.

Since I am unable to edit the original PR, I am closing that out and linking to this one
with changes.

ryanplasma and others added 6 commits September 10, 2024 22:38
updated the jinja2 template.
escapeNewlines() was ONLY
being applied to the
detection.description before,
but it MUST be applied to
the explanation as well. This
bug was confirmed by generating
some conf files with description
and/or explanations, with spaces,
defined.
Now, whichever value is used to
populate that field is properly
escaped.
Copy link
Contributor Author

@pyth0n1c pyth0n1c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested this and checked that the output is correct

@pyth0n1c pyth0n1c merged commit a199c72 into main Sep 26, 2024
36 checks passed
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.

2 participants