Add support for SecArgumentSeparator
setting
#1109
Labels
documentation
Improvements or additions to documentation
SecArgumentSeparator
setting
#1109
Summary
Do you want to engage with Coraza but don't know where to start? This is the perfect issue for you!
Let's add support for
SecArgumentSeparator
setting. This should be set in thecoraza.conf-recommended
, and the default is&
.👉 Where is this set? Easy, you can find the (hardcoded) value here (a):
coraza/internal/bodyprocessors/urlencoded.go
Line 26 in 6471deb
I'm excited, this sounds awesome! What do I need to do?
coraza/internal/corazawaf/waf.go
Line 35 in c094576
ArgumentSeparator
, and it will be a char probably 😄SecArgumentSeparator
directive. This is easy: take a look at theinternal/seclang/directives.go
file, and create a newfunc directiveSecArgumentSeparator(options *DirectiveOptions) error
. It will be very similar to other functions, e.g.directiveSecWebAppID
. You will need to store the value of the argument separator in the variable created in 1.Motivation
The text was updated successfully, but these errors were encountered: