[wp-trac] Re: [WordPress Trac] #4136: Admin should not by stopped
from uploading any type of file
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 30 08:42:14 GMT 2007
#4136: Admin should not by stopped from uploading any type of file
-------------------------------------+--------------------------------------
Reporter: foolswisdom | Owner: rob1n
Type: enhancement | Status: reopened
Priority: normal | Milestone: 2.3
Component: Administration | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Comment (by Nazgul):
I did some testing.
The greedy stripping is done by __sanitize_title_with_dashes__, because
__wp_check_filetype__ isn't called and therefore __$ext__ isn't set.
The attached patch makes sure __wp_check_filetype__ is called, and sets
the __$ext__ manually if it's an unknown filetype and the user can do
__unfiltered_upload__.
--
Ticket URL: <http://trac.wordpress.org/ticket/4136#comment:14>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list