use strtolower when checking $ext for icons, so that file.MP3 will match.
- $ext = array_pop(explode('.',$file['filename']));
+ $ext = strtolower(array_pop(explode('.',$file['filename'])));
| Comment | File | Size | Author |
|---|---|---|---|
| filefield.lowerext.patch | 1.14 KB | aaron |
Comments
Comment #1
jpetso commentedThat sounds like a good idea, but I'm not sure what dopry meant with the line
Can we have the above patch nevertheless? Where should that validate happen? The answer my friend, etc.
Comment #2
jpetso commentedNo answer in quite some time means I can commit this. Applied, enjoy! (at least, as long as that version of the icon name lookup is still alive, before being replaced with a naming specification compliant, mimetype-based lookup scheme.)
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.