https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42080 --- Comment #13 from David Cook <dcook@prosentient.com.au> --- Created attachment 199059 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199059&action=edit Bug 42080: Invoice PDFs are forced downloads Serve invoice files with a CSP header that prevents XSS instead of with an attachment header that turns them into downloads. Testing plan: - Set AcqEnableFiles preference to Do - Acquisitions > Vendor > Receive Shipment > Create invoice - Finish Receiving > Manage invoice files - Upload an SVG with a <script> tag in it - Click the SVG filename to open it - Inspect browser's console: it should say something about a script being blocked due to the CSP directive Signed-off-by: David Cook <dcook@prosentient.com.au> -- You are receiving this mail because: You are watching all bug changes.