From 383b55fc203902f098b0256019be6f5b7f7bcbf9 Mon Sep 17 00:00:00 2001
From: jrfnl <github_nospam@adviesenzo.nl>
Date: Thu, 29 Sep 2016 13:16:53 +0200
Subject: [PATCH] Fix wildcard escaping in four oembed regexes.
---
src/wp-includes/class-oembed.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php
index 052a215..3bca890 100644
a
|
b
|
class WP_oEmbed { |
60 | 60 | '#https?://youtu\.be/.*#i' => array( 'https://www.youtube.com/oembed', true ), |
61 | 61 | '#https?://(.+\.)?vimeo\.com/.*#i' => array( 'https://vimeo.com/api/oembed.{format}', true ), |
62 | 62 | '#https?://(www\.)?dailymotion\.com/.*#i' => array( 'https://www.dailymotion.com/services/oembed', true ), |
63 | | '#https?://dai.ly/.*#i' => array( 'https://www.dailymotion.com/services/oembed', true ), |
| 63 | '#https?://dai\.ly/.*#i' => array( 'https://www.dailymotion.com/services/oembed', true ), |
64 | 64 | '#https?://(www\.)?flickr\.com/.*#i' => array( 'https://www.flickr.com/services/oembed/', true ), |
65 | 65 | '#https?://flic\.kr/.*#i' => array( 'https://www.flickr.com/services/oembed/', true ), |
66 | 66 | '#https?://(.+\.)?smugmug\.com/.*#i' => array( 'https://api.smugmug.com/services/oembed/', true ), |
… |
… |
class WP_oEmbed { |
68 | 68 | 'http://i*.photobucket.com/albums/*' => array( 'http://api.photobucket.com/oembed', false ), |
69 | 69 | 'http://gi*.photobucket.com/groups/*' => array( 'http://api.photobucket.com/oembed', false ), |
70 | 70 | '#https?://(www\.)?scribd\.com/doc/.*#i' => array( 'https://www.scribd.com/services/oembed', true ), |
71 | | '#https?://wordpress.tv/.*#i' => array( 'https://wordpress.tv/oembed/', true ), |
| 71 | '#https?://wordpress\.tv/.*#i' => array( 'https://wordpress.tv/oembed/', true ), |
72 | 72 | '#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'https://polldaddy.com/oembed/', true ), |
73 | 73 | '#https?://poll\.fm/.*#i' => array( 'https://polldaddy.com/oembed/', true ), |
74 | 74 | '#https?://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ), |
75 | 75 | '#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i' => array( 'https://publish.twitter.com/oembed', true ), |
76 | 76 | '#https?://(www\.)?twitter\.com/.+?/timelines/.*#i' => array( 'https://publish.twitter.com/oembed', true ), |
77 | 77 | '#https?://(www\.)?twitter\.com/i/moments/.*#i' => array( 'https://publish.twitter.com/oembed', true ), |
78 | | '#https?://vine.co/v/.*#i' => array( 'https://vine.co/oembed.{format}', true ), |
| 78 | '#https?://vine\.co/v/.*#i' => array( 'https://vine.co/oembed.{format}', true ), |
79 | 79 | '#https?://(www\.)?soundcloud\.com/.*#i' => array( 'https://soundcloud.com/oembed', true ), |
80 | 80 | '#https?://(.+?\.)?slideshare\.net/.*#i' => array( 'https://www.slideshare.net/api/oembed/2', true ), |
81 | 81 | '#https?://(www\.)?instagr(\.am|am\.com)/p/.*#i' => array( 'https://api.instagram.com/oembed', true ), |
… |
… |
class WP_oEmbed { |
92 | 92 | '#https?://kck\.st/.*#i' => array( 'https://www.kickstarter.com/services/oembed', true ), |
93 | 93 | '#https?://cloudup\.com/.*#i' => array( 'https://cloudup.com/oembed', true ), |
94 | 94 | '#https?://(www\.)?reverbnation\.com/.*#i' => array( 'https://www.reverbnation.com/oembed', true ), |
95 | | '#https?://videopress.com/v/.*#' => array( 'https://public-api.wordpress.com/oembed/1.0/?for=' . $host, true ), |
| 95 | '#https?://videopress\.com/v/.*#' => array( 'https://public-api.wordpress.com/oembed/1.0/?for=' . $host, true ), |
96 | 96 | '#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed', true ), |
97 | 97 | '#https?://(www\.)?speakerdeck\.com/.*#i' => array( 'https://speakerdeck.com/oembed.{format}', true ), |
98 | 98 | '#https?://www\.facebook\.com/.*/posts/.*#i' => array( 'https://www.facebook.com/plugins/post/oembed.json/', true ), |