needReplacement checks if a string contains placeholders.
(s string)
| 193 | |
| 194 | // needReplacement checks if a string contains placeholders. |
| 195 | func needReplacement(s string) bool { |
| 196 | return strings.ContainsAny(s, "{}") |
| 197 | } |
| 198 | |
| 199 | // ServeHTTP implements caddyhttp.MiddlewareHandler. |
| 200 | func (f *FrankenPHPModule) ServeHTTP(w http.ResponseWriter, r *http.Request, _ caddyhttp.Handler) error { |