photoprism/pkg/http/security
Michael Mayer b04233f2f4 Backend: Use strings.SplitSeq for split-and-iterate loops #5599
Replace strings.Split with the lazy strings.SplitSeq iterator (Go 1.23+)
in loops that only range over the tokens, avoiding the intermediate
slice allocation. The yielded substrings are identical to Split, so
behavior is unchanged. Applies the suggestion from #5599 to its three
sites (CIDR parsing, WebDAV hidden-path, overlay path checks) and
extends it to two more split-and-iterate loops in the server compression
negotiator and MCP config-options builder for consistency. The slice
returning splitPath helper is intentionally left on strings.Split.
2026-05-30 09:49:47 +00:00
..
cmd/scanpathsgen Security: Add gosec fixes with shared URL and fs validation helpers 2026-03-03 16:38:41 +01:00
resources Security: Generate hashed scan paths from resource list 2026-02-25 03:01:13 +01:00
generate.go Security: Generate hashed scan paths from resource list 2026-02-25 03:01:13 +01:00
hash.go Security: Generate hashed scan paths from resource list 2026-02-25 03:01:13 +01:00
hash_test.go Security: Add gosec fixes with shared URL and fs validation helpers 2026-03-03 16:38:41 +01:00
scan-paths.go Security: Update http/security/scan-paths.go 2026-02-27 00:21:10 +01:00
security.go Docs: Update copyright year in Dockerfiles, scripts, and Go files 2026-05-22 07:56:59 +02:00
web_overlay.go Backend: Use strings.SplitSeq for split-and-iterate loops #5599 2026-05-30 09:49:47 +00:00
web_overlay_test.go Security: Add gosec fixes with shared URL and fs validation helpers 2026-03-03 16:38:41 +01:00