Make WordPress Core

Changeset 19079


Ignore:
Timestamp:
10/28/2011 08:05:43 PM (14 years ago)
Author:
duck_
Message:

Ensure auto-embed only matches "smugmug.com" and its subdomains. Fixes #19076.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-oembed.php

    r19076 r19079  
    3737            '#http://(www\.)?dailymotion\.com/.*#i'         => array( 'http://www.dailymotion.com/api/oembed',    true  ),
    3838            '#http://(www\.)?flickr\.com/.*#i'              => array( 'http://www.flickr.com/services/oembed/',   true  ),
    39             '#http://(.+)?smugmug\.com/.*#i'                => array( 'http://api.smugmug.com/services/oembed/',  true  ),
     39            '#http://(.+\.)?smugmug\.com/.*#i'              => array( 'http://api.smugmug.com/services/oembed/',  true  ),
    4040            '#http://(www\.)?hulu\.com/watch/.*#i'          => array( 'http://www.hulu.com/api/oembed.{format}',  true  ),
    4141            '#http://(www\.)?viddler\.com/.*#i'             => array( 'http://lab.viddler.com/services/oembed/',  true  ),
     
    4646            '#http://(www\.)?scribd\.com/.*#i'              => array( 'http://www.scribd.com/services/oembed',    true  ),
    4747            'http://wordpress.tv/*'                         => array( 'http://wordpress.tv/oembed/',              false ),
    48             '#http://(.+\.)?polldaddy\.com/.*#i'        => array( 'http://polldaddy.com/oembed/',             true  ),
     48            '#http://(.+\.)?polldaddy\.com/.*#i'            => array( 'http://polldaddy.com/oembed/',             true  ),
    4949            '#http://(www\.)?funnyordie\.com/videos/.*#i'   => array( 'http://www.funnyordie.com/oembed',         true  ),
    5050        ) );
Note: See TracChangeset for help on using the changeset viewer.