apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
65 stars 72 forks source link

Always classify files ending with '.pdf' as binary #1299

Closed ihalaij1 closed 10 months ago

ihalaij1 commented 10 months ago

Description

What?

When a student submitted a large PDF file and it was incorrectly detected as non-binary data by the binaryornot library, the inspect submission page tried to render it and caused the page to load slowly.

This is now fixed by always classifying files ending with '.pdf' as non-binary data.

Fixes #1298