Closed (fixed)
Project:
IMCE
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2008 at 11:30 UTC
Updated:
12 Feb 2009 at 12:50 UTC
Jump to comment: Most recent file
It's taking too long, and sometimes I get an execution time out.
The problem is in function imce_image_info($file) that resides in inc/page.inc file. This function is calling getimagesize on any type of file, and for big files this function is taking unnecessary process time to return the fact that the file is not an image.
Getimagesize should be called only on known image files that are indeed supported by this function.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | check_extensions_before_getimagesize.patch | 771 bytes | jamuraa |
Comments
Comment #1
jamuraa commentedThis patch should fix this issue. It checks the file extension to make sure that it is a jpeg, jpg, gif, or png because those are the only ones that we use the filesize of anyway.
Comment #2
ufku commentedcommitted. thanks.