Skip to content

Fix: enforce sanitizing across all filter engines#13

Merged
kettasoft merged 2 commits intomasterfrom
2.2.1
Aug 28, 2025
Merged

Fix: enforce sanitizing across all filter engines#13
kettasoft merged 2 commits intomasterfrom
2.2.1

Conversation

@kettasoft
Copy link
Copy Markdown
Owner

Summary

This PR fixes an issue where some filter engines did not apply sanitizing,
leading to inconsistent behavior and potential unsafe inputs.

Changes

  • Centralized sanitizing logic so it is always applied before engine processing.
  • Updated all engines to use the common sanitizing layer.
  • Added comprehensive tests to ensure sanitizing works consistently.

Why

Sanitizing is a core part of Filterable. Missing it in some engines is a bug
that could cause unexpected behavior or vulnerabilities. This PR ensures a
consistent and safe experience across all engines.

Tests

  • Added unit tests for sanitizing across multiple engines.
  • Verified edge cases with malformed and unsafe input.

Abdalrhman Emad Saad added 2 commits August 28, 2025 19:27
- Centralized sanitizing so it runs consistently for all filter engines.
- Fixed missing sanitizing in engines that previously bypassed it.
- Guarantees consistent behavior and prevents unsafe/invalid inputs.
@kettasoft kettasoft merged commit 6bbeb99 into master Aug 28, 2025
1 check passed
@kettasoft kettasoft deleted the 2.2.1 branch November 18, 2025 11:03
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.

1 participant