[wp-trac] [WordPress Trac] #47752: Fix upload of .srt files
WordPress Trac
noreply at wordpress.org
Sun Sep 1 02:41:10 UTC 2019
#47752: Fix upload of .srt files
-------------------------------------------------+-------------------------
Reporter: afercia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3
Component: Upload | Version: 5.0.1
Severity: normal | Resolution:
Keywords: has-screenshots has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by killerbishop):
* keywords: needs-patch has-screenshots => has-screenshots has-patch has-
unit-tests
Comment:
I've uploaded a patch for this along with a unit test that uses a copy of
the file referenced in this issue. If ''text/html'' is detected as the
MIME type and the file extension is `.srt` then it will be allowed
through.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47752#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list