mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
* fix: apply the document archive size guard to every zip file, not just named extensions The decompression-bomb guard in the document loader only ran when the filename extension or the declared content type matched a fixed list, so an office archive renamed to a legacy or unknown extension (for example an .xlsx saved as .xls, .bin, or served from a URL with no extension) skipped the check entirely and was fully inflated in the worker. The guard now detects zip archives by content and checks every one of them, while non-archive files keep the previous behavior. * refac: identify loader archives by content The document loader now recognises archives by their content when checking their size.