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

Modsecurity config support for all Drupal-based presets. #92

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

codebymikey
Copy link
Contributor

The majority of the bash script within the codebase does a prefix check for drupal support, so it makes sense to do so here as well to keep the behaviour consistent when using custom drupal-based presets.

This should also reduce code-maintenance for future Drupal releases.

The gotmpl script used doesn't have startswith or regex support, so doing the comparison by printing only the first 6 characters and comparing that way.

The majority of the bash script codebase does a prefix check for drupal support, so it makes sense to do that here as well to keep the behaviour consistent when using custom drupal-based presets.
@csandanov csandanov merged commit 1958766 into wodby:master Aug 5, 2024
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