Commit graph

8 commits

Author SHA1 Message Date
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
Michael Mayer
91d27f7e6e Docs: Update copyright year in Dockerfiles, scripts, and Go files
Signed-off-by: Michael Mayer <michael@photoprism.app>
2026-05-22 07:56:59 +02:00
Michael Mayer
f2aabb9bcd Security: Add gosec fixes with shared URL and fs validation helpers
Signed-off-by: Michael Mayer <michael@photoprism.app>
2026-03-03 16:38:41 +01:00
Michael Mayer
99d34a9c8f Security: Update http/security/scan-paths.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
2026-02-27 00:21:10 +01:00
Michael Mayer
78c0fb897b Pkg: Update http/security/scan-paths.go and hash_test.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
2026-02-26 13:45:07 +01:00
Michael Mayer
038d38d552 Security: Extend denylist coverage for names, paths and extensions #5459
Signed-off-by: Michael Mayer <michael@photoprism.app>
2026-02-26 11:01:15 +01:00
Michael Mayer
31515f9524 Security: Harden web overlay serving via shared security checks
https://github.com/photoprism/photoprism/issues/5459
Signed-off-by: Michael Mayer <michael@photoprism.app>
2026-02-25 17:01:39 +01:00
Michael Mayer
b2f137f240 Security: Generate hashed scan paths from resource list
Signed-off-by: Michael Mayer <michael@photoprism.app>
2026-02-25 03:01:13 +01:00