Closed (fixed)
Project:
Get Image
Version:
6.x-1.0-beta8
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2011 at 03:03 UTC
Updated:
29 Apr 2012 at 16:40 UTC
"Rename image" option which changes file name to MD5 hash is broken.
The cause is the following code starting from line 80:
if (variable_get('get_image_rename', 0)) {
$filename = md5($file->filename) .'.'. end(explode('.', $file->filename));
}$filename should be changed to $file->filename in line 81 to make things work properly:
if (variable_get('get_image_rename', 0)) {
$file->filename = md5($file->filename) .'.'. end(explode('.', $file->filename));
}BTW cool module, have been searching for something like this for a long time, thx a lot to authors! :)
Comments
Comment #1
superfedya commentedThanks for your fix!
Comment #2
eastcn commented