[wp-trac] [WordPress Trac] #47752: Fix upload of .srt files
WordPress Trac
noreply at wordpress.org
Sat Jul 27 17:41:12 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: needs-patch has-screenshots | Focuses:
-----------------------------------------+---------------------
Comment (by killerbishop):
I've tested this specific issue using vvv - from what I can tell - the
mime type on this file according to finfo is ''text/html''. Expectation
from the {{{wp_check_filetype_and_ext()}}} is that it should be
''text/plain''. It's also not in the array of choices in that call. Before
pushing a patch - if something comes back as ''text/html'' with extension
''.srt'' - should this be allowed or is ''text/html'' purposefully ignored
for security reasons here?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47752#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list