Ticket #677 (closed Bug: fixed)
Error message in case of undefined mime type
| Reported by: | Tyrael | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Modules:Forge | Version: | SVN HEAD |
| Keywords: | Cc: |
Description
In the modules/Forge/libraries/Form_Upload.php
143 if (in_array($mime, Config::item('mimes.'.$type))) 144 { 145 // Type is valid 146 $allow = TRUE; 147 break; 148 }
If the given mimetype is not pressent in the config file, an error message is shown, you should cast the Config::item('mimes.'.$type) to an array.
Tyrael
Change History
Note: See
TracTickets for help on using
tickets.
