Embed.ly provider patterns containing * in hostname never match.

Created on 18 August 2010, over 14 years ago
Updated 26 November 2024, 6 months ago

Some of the Embed.ly schemes that come back from oembedembedly_default_oembedcore_provider() contain patterns (.+) after the period separator in the hostname. These are translated to * and used to select regex patterns in oembedcore_get_provider().

For example, for YouTube:

http://*youtube.com/watch*
http://*.youtube.com/v/*
http://youtu.be/*
http://*.youtube.com/user/*#*
http://*.youtube.com/*#*/*

which are converted to

*youtube.com
youtube.com
youtu.be

Likewise, there are other patterns that are being converted to unusable hosts:

*justin.tv
*amazon.*

I'm working on a patch.

πŸ› Bug report
Status

Closed: outdated

Version

0.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024