Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Try to avoid triggering modsec rules #5971
@SuperGeniusZeb: I've tried comparing the raw POST requests that Gutenberg 2.2 and 2.5 made. The most obvious difference is that the former sent data as JSON, whereas the latter users form encoding. Depending on how modsec parses the POST data, this may effect whether a rule is being triggered or not.
Could you test this change, and see if it fixes the problem, or maybe causes a different rule to be triggered?
I have not tested the change yet, but I did notice a mistake in your pull request. You need to change the closing identifier on lines 113 and 130 of