samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Wrong determination of file extension #342

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get PNG Image. Rename it's extension to JPG.
2. Go to "Add Gallery / Images".
3. Try to upload.

Expected: successfully uploaded image.
Get: Warnings and in result wrong upload and can't edit thumbnail.

NextGEN Gallery Version 1.6.2
As i see, this problem is occurring in 1.7.3 version also.

Attached patch for file lib/gd.thumbnail.inc.php generated in NetBeans IDE.

Wordpress.ord issue: 
http://wordpress.org/support/topic/plugin-nextgen-gallery-bug-report-wrong-deter
mination-of-file-extension

Original issue reported on code.google.com by kupa...@gmail.com on 3 Feb 2011 at 10:32

GoogleCodeExporter commented 8 years ago
Here is the patch

Original comment by kupa...@gmail.com on 3 Feb 2011 at 10:36

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by alex.cologne on 6 Feb 2011 at 8:57

GoogleCodeExporter commented 8 years ago
thanks fixed in r912

Original comment by alex.cologne on 15 Feb 2011 at 9:09