[wp-trac] [WordPress Trac] #4151: uploaded image thumbnails
permissions incorrect
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 15 13:02:20 GMT 2007
#4151: uploaded image thumbnails permissions incorrect
----------------------------+-----------------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2
Component: Administration | Version: 2.1
Severity: normal | Keywords: thumbnails
----------------------------+-----------------------------------------------
I've just realised i've got an issue regarding the creation of thumbnails
of uploaded images.[[BR]]
{{{
-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.[[BR]]
[[BR]]
The fullsize image is being chmod'd correctly (i believe on line 1993 of
admin-functions.php).[[BR]]
[[BR]]
The thumbnail file however isnt getting the same action, its being left as
is.[[BR]]
Attached is a patch which uses the same chmod code from the upload
function to modify the permissions of the thumbnail thats created.[[BR]]
[[BR]]
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
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4151>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list