Ticket #677 (closed Bug: fixed)

Opened 5 months ago

Last modified 4 months ago

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

Changed 5 months ago by Tyrael

the code snippet was messed up, so here it comes again:

143 	            if (in_array($mime, Config::item('mimes.'.$type)))
144 	            {
145 	                // Type is valid
146 	                $allow = TRUE;
147 	                break;
148 	            }

Tyrael

Changed 5 months ago by Shadowhand

  • status changed from new to assigned

Changed 5 months ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r3003, merged in r3004.

Changed 4 months ago by anonymous

  • milestone deleted

Milestone 2.1.3 deleted

Note: See TracTickets for help on using tickets.