MultiRegexpFilter is a Caddy log field filter that can apply multiple regular expression replacements to the same field. This filter processes operations in the order they are defined, applying each regexp replacement sequentially to the result of the previous operation. This allows users to define
| 653 | // - Limits the maximum number of operations to prevent resource exhaustion |
| 654 | // - Sanitizes input to prevent injection attacks |
| 655 | type MultiRegexpFilter struct { |
| 656 | // A list of regexp operations to apply in sequence. |
| 657 | // Maximum of 50 operations allowed for security and performance. |
| 658 | Operations []regexpFilterOperation `json:"operations"` |
| 659 | } |
| 660 | |
| 661 | // Security constants |
| 662 | const ( |
nothing calls this directly
no outgoing calls
no test coverage detected