- 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. |
||
|---|---|---|
| .. | ||
| packages | ||
| public | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| docker-entrypoint.sh | ||
| embed.html | ||
| env.d.ts | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| package.json.md5 | ||
| pnpm-workspace.yaml | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||