- Use mime.FormatMediaType for both attachment and inline Content-Disposition headers in DownloadKnowledgeFile and the preview handler, preventing header injection via a user-controlled knowledge title (e.g. containing ';' or '=') - Extract inline sanitize logic into sanitizeManualDownloadFilename helper and add a blank/whitespace-only title fallback to "untitled" so the download never produces a degenerate ".md" filename Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| session | ||
| auth.go | ||
| chunk.go | ||
| custom_agent.go | ||
| evaluation.go | ||
| faq.go | ||
| im.go | ||
| initialization.go | ||
| knowledge.go | ||
| knowledgebase.go | ||
| mcp_service.go | ||
| message.go | ||
| model.go | ||
| organization.go | ||
| skill_handler.go | ||
| system.go | ||
| tag.go | ||
| tenant.go | ||
| web_search.go | ||