Opened 13 years ago
Closed 13 years ago
#22549 closed enhancement (wontfix)
Sanitize embedded external URLs
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | minor | Version: | 3.5 |
| Component: | Media | Keywords: | |
| Focuses: | Cc: |
Description (last modified by )
When you go to embed an external URL via the 'Embed From URL' tab in the new media modal, the URL is inserted as-is.
The user in this recent user interaction test by lessbloat pasted a URL into this box without overwriting the 'http://' placeholder and ended up with a mangled URL. Before inserting it into the post the URL should be sanitized via an AJAX call that runs it through esc_url_raw().
Related: #22548
Note: See
TracTickets for help on using
tickets.
The linking dialog selects 'http://'. We should continue the same user interaction here.