[wp-trac] [WordPress Trac] #31213: oEmbed discovery fails on XML-encoded link URLs
WordPress Trac
noreply at wordpress.org
Mon Feb 2 19:51:52 UTC 2015
#31213: oEmbed discovery fails on XML-encoded link URLs
--------------------------+-----------------------------
Reporter: cweiske | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Special characters like `&` in URLs should be encoded in HTML pages (`&`
becomes `&`).
Wordpress' oEmbed discovery in `WP_oEmbed::discover()` does not decode the
encoded entities and then tries to fetch URLs like
http://example.org/oembed.php?format=json&url=...
It should use `htmlentities_decode()` on the extracted URLs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31213>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list