]> BookStack Code Mirror - bookstack/commit
Themes: Added testing and better mime sniffing for public serving
authorDan Brown <redacted>
Mon, 13 Jan 2025 16:51:07 +0000 (16:51 +0000)
committerDan Brown <redacted>
Mon, 13 Jan 2025 16:51:07 +0000 (16:51 +0000)
commit481580be172a4813ee98ad1b945d12d731e71cdb
tree1324803947b9f17f389ac0a26c2938741a55df4b
parent593645acfe8521db97d7469c92546c8529703969
Themes: Added testing and better mime sniffing for public serving

Existing mime sniffer wasn't great at distinguishing between plaintext
file types, so added a custom extension based mapping for common web
formats that may be expected to be used with this.
app/Http/DownloadResponseFactory.php
app/Http/RangeSupportedStream.php
app/Util/WebSafeMimeSniffer.php
tests/ThemeTest.php