Files
Enterprise-Knowledge-Base/internal/im
wizardchen 0869f3e829 fix(im): harden Yunzhijia image download and prune dead validation
- Follow a single download redirect while re-validating the target stays
  within the allowed host suffix; never forward the bearer token across it.
  The shared http client disables auto-redirects for SSRF safety, so a 302
  from downloadfileOpen previously failed the download outright.
- Cap in-memory download size at 32 MiB via a limited read-closer that
  errors instead of silently truncating, avoiding OOM on large responses.
- Remove dead frontend host-suffix validation branch (normalize always
  fills the default) and drop the now-unused i18n keys
  yunzhijiaAllowedHostSuffixRequired / yunzhijiaRequiredCredentials.
- Add tests for redirect follow/reject and the size limit.
2026-07-23 12:41:19 +08:00
..
2026-07-21 12:24:33 +08:00
2026-07-21 12:24:33 +08:00