Werk #18491 · Mar 12, 26
Rulesets: Validate regex pattern in explicit host conditions
When entering an explicit host condition in a ruleset, values starting with
~ are interpreted as regular expressions. Previously, no validation was
performed on these regex patterns, so an invalid regex would be accepted
silently and could cause unexpected behavior at runtime.
With this fix, the regex pattern is validated at input. If the pattern is invalid, a proper error message is shown to the user immediately, preventing invalid configurations from being saved.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Setup (WATO)
- Versions:
- 2.4.0p26All Editions
- 2.3.0p47CommunityProUltimateUltimate + MT