Opened 7 years ago

Closed 7 years ago

#5068 closed defect (fixed)

File extension matching fails with relative paths

Reported by: anongoblin Owned by:
Priority: major Milestone: 0.8.0
Component: programming Keywords:
Cc: Parent Tickets:

Description

media_types/__init__.py:109:
    if filename.find('.') > 0:

should be: if filename.find('.') >= 0:

Because otherwise files of the form "./blah.mp4" don't work, which happens with the localfiles plugin.

Subtickets

Attachments (2)

file_extension.patch (834 bytes) - added by anongoblin 7 years ago.
Fix
issue_5068.patch (1.1 KB) - added by Boris Bobrov 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by anongoblin

Attachment: file_extension.patch added

Fix

comment:1 Changed 7 years ago by ayleph

Milestone: 0.8.0

Changed 7 years ago by Boris Bobrov

Attachment: issue_5068.patch added

comment:2 Changed 7 years ago by Boris Bobrov

Status: newreview

Could you please test the fix above?

comment:3 Changed 7 years ago by Christopher Allan Webber

Resolution: fixed
Status: reviewclosed

LGTM.

Note: See TracTickets for help on using tickets.