f4d74879cc95066cf3a18b7ca3ee6484160abc22
New server/files_http.py; get_wp_file uses it. - PDF and raster images (png, jpeg, gif, webp, bmp, avif) open inline, as before; Cache-Control unchanged for the offline drawing cache. - Every other type, SVG included, downloads as an attachment with Content-Security-Policy: sandbox; default-src 'none'. - SVG uploads stay accepted (decided 2026-10-02: accept, download only). - Content-Disposition: ASCII fallback + RFC 5987 filename*, control characters and quotes replaced. nosniff from the API too. Security review SEC-01 (stored XSS through an SVG drawing) and SEC-15e (non-Latin-1 names gave 500; CR/LF reached the header). security_check.py D19: 20/20 total with D21. Againstda1325c: 6 fails (the findings); every inline/cache/access check passes on both. (cherry picked from commit14ecb75c88)
Description
No description provided
Languages
Python
53.8%
JavaScript
30.1%
HTML
7.9%
CSS
7.8%
Shell
0.3%