[wp-trac] [WordPress Trac] #15916: Please add .ics to security guidelines' "whitelist."

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 10 02:25:44 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 westi):

 Replying to [comment:5 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.

 Don't forget the:

 {{{
 return $mimes
 }}}

 At the end of the function

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15916#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list