Opened 2 years ago
Closed 19 months ago
#17106 closed defect (bug) (fixed)
oEmbed - PollDaddy regex needs updating
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Embeds | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | r-a-y@… |
Description
PollDaddy's oEmbed regex needs updating so it correctly embeds.
Attached patch.
Attachments (3)
Change History (11)
You're correct about hardcoding "/poll/".
Removing the subdomain will work.
New patch fixes this.
I think we will want to add an escaped dot to the regex:
#http://(.+)?\.polldaddy\.com/.*#i
to avoid matching completely different domains, e.g. http://notpolldaddy.com/, and only allow polldaddy.com subdomains.
If you update the patch to add the dot, then would the following not match:
http://polldaddy.com/poll/xxx
I kind of copied the regex that Smugmug was using ;)
http://core.trac.wordpress.org/browser/trunk/wp-includes/class-oembed.php#L46
comment:7
SergeyBiryukov — 22 months ago
- Milestone changed from Awaiting Review to 3.3
Note: See
TracTickets for help on using
tickets.

This will break old form URLs. The oembed handler should instead be adjusted to handle these. We could also remove the subdomain requirement and send all subdomains, but we shouldn't make it more restrictive (i.e. /poll/).