WordPress.org

Make WordPress Core

Changeset 17990


Ignore:
Timestamp:
05/22/2011 11:17:09 PM (10 years ago)
Author:
ryan
Message:

Properly anchor mime preg.

File:
1 edited

Legend:

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

    r17982 r17990  
    708708            $allowed = false;
    709709            foreach ( $mimes as $ext_preg => $mime_match ) {
    710                 $ext_preg = '!(^' . $ext_preg . ')$!i';
     710                $ext_preg = '!^(' . $ext_preg . ')$!i';
    711711                if ( preg_match( $ext_preg, $part ) ) {
    712712                    $allowed = true;
Note: See TracChangeset for help on using the changeset viewer.