uploaded image thumbnails permissions incorrect
|Reported by:||DD32||Owned by:|
I've just realised i've got an issue regarding the creation of thumbnails of uploaded images.
-rw-r--r-- 1 theonly theonly 51894 Apr 15 20:40 oct_2005.png -rw------- 1 theonly theonly 9156 Apr 15 20:40 oct_2005.thumbnail.png
PHP is running under suPHP, the thumbnail in this example(live data) will be returning 403.
The fullsize image is being chmod'd correctly (i believe on line 1993 of admin-functions.php).
The thumbnail file however isnt getting the same action, its being left as is.
Attached is a patch which uses the same chmod code from the upload function to modify the permissions of the thumbnail thats created.
Heres the result after the patch applied:
-rw-r--r-- 1 theonly theonly 217891 Apr 15 20:58 active_threads.png -rw-r--r-- 1 theonly theonly 3104 Apr 15 20:58 active_threads.thumbnail.png