[wp-trac] [WordPress Trac] #15916: Please add .ics to security guidelines' "whitelist."
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 9 16:43:46 UTC 2011
#15916: Please add .ics to security guidelines' "whitelist."
---------------------------------+-----------------------------
Reporter: janas | Owner: westi
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Upload | Version:
Severity: normal | Resolution:
Keywords: has-patch 3.2-early |
---------------------------------+-----------------------------
Comment (by aaroncampbell):
There's a really simple fix for this:
{{{
function allow_new_filetypes( $mimes ) {
$mimes['ics'] = 'text/calendar';
}
add_filter( 'upload_mimes', 'allow_new_filetypes' );
}}}
You can put that in your theme's functions.php file, or put it in a file
and drop it in your mu-plugins folder.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15916#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list