WordPress.org

Make WordPress Core

Changeset 10502


Ignore:
Timestamp:
02/04/09 20:27:30 (5 years ago)
Author:
ryan
Message:

Allow + in mime type regex. Props Sam_a. fixes #8991

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r10400 r10502  
    10601060        if ( false !== $slashpos ) { 
    10611061            $mime_group = preg_replace('/[^-*.a-zA-Z0-9]/', '', substr($mime_type, 0, $slashpos)); 
    1062             $mime_subgroup = preg_replace('/[^-*.a-zA-Z0-9]/', '', substr($mime_type, $slashpos + 1)); 
     1062            $mime_subgroup = preg_replace('/[^-*.+a-zA-Z0-9]/', '', substr($mime_type, $slashpos + 1)); 
    10631063            if ( empty($mime_subgroup) ) 
    10641064                $mime_subgroup = '*'; 
Note: See TracChangeset for help on using the changeset viewer.