caddy/internal
Mohammed Al Sahaf d9ca71a718
internal: fix MaxSizeSubjectsListForLog off-by-one when maxToDisplay is 0
The loop appended before checking the length, so with maxToDisplay=0
one domain leaked into the output before the break check. Reorder so
the length check comes first.

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
2026-10-19 11:19:15 +03:00
..
filesystems filesystems 2026-10-19 11:17:09 +03:00
metrics metrics sanitization 2026-10-19 11:13:48 +03:00
testmocks caddytls: verifier: caddyfile: re-add Caddyfile support (#6127) 2024-02-26 00:13:48 +03:00
bindcap_linux.go core: Raise CAP_NET_BIND_SERVICE when binding privileged ports (#8102) 2026-10-03 19:10:02 +10:00
bindcap_linux_test.go core: Raise CAP_NET_BIND_SERVICE when binding privileged ports (#8102) 2026-10-03 19:10:02 +10:00
bindcap_other.go core: Raise CAP_NET_BIND_SERVICE when binding privileged ports (#8102) 2026-10-03 19:10:02 +10:00
logbuffer.go logging: Adjustments to BufferedLog to keep logs in the correct order (#7257) 2025-09-15 09:29:50 -06:00
logbuffer_test.go internal: test package 2026-10-19 11:17:09 +03:00
logmarshalers.go admin: Redact sensitive request headers in API logs (#7578) 2026-04-17 14:56:42 -06:00
logmarshalers_test.go move tests of `LoggableHTTPHeader` and `LoggableStringArray` 2026-10-19 11:19:14 +03:00
logs.go internal: fix `MaxSizeSubjectsListForLog` off-by-one when `maxToDisplay` is `0` (#7970) 2026-09-26 18:51:36 +10:00
logs_test.go internal: fix `MaxSizeSubjectsListForLog` off-by-one when `maxToDisplay` is `0` (#7970) 2026-09-26 18:51:36 +10:00
ranges.go caddytls,caddyhttp: Placeholders for some TLS and HTTP matchers (#6480) 2024-08-07 11:02:23 -06:00
ranges_test.go internal: fix MaxSizeSubjectsListForLog off-by-one when maxToDisplay is 0 2026-10-19 11:19:15 +03:00
sockets.go ci: Use gofumpt to format code (#5707) 2023-08-07 19:40:31 +00:00
sockets_test.go internal: test package 2026-10-19 11:17:09 +03:00