WordPress.org

Make WordPress Core

Changeset 18014


Ignore:
Timestamp:
05/24/2011 03:47:45 PM (8 years ago)
Author:
ryan
Message:

Properly anchor mime preg.

Location:
branches/3.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1

  • branches/3.1/wp-includes/formatting.php

    r17571 r18014  
    719719            $allowed = false;
    720720            foreach ( $mimes as $ext_preg => $mime_match ) {
    721                 $ext_preg = '!(^' . $ext_preg . ')$!i';
     721                $ext_preg = '!^(' . $ext_preg . ')$!i';
    722722                if ( preg_match( $ext_preg, $part ) ) {
    723723                    $allowed = true;
Note: See TracChangeset for help on using the changeset viewer.