Opened 11 years ago
Closed 11 years ago
#34527 closed defect (bug) (fixed)
WP oEmbed: Improve height attribute sanitization
| Reported by: | afercia | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Embeds | Version: | 4.4 |
| Severity: | normal | Keywords: | has-screenshots has-patch commit |
| Cc: | Focuses: | ui, javascript |
Attachments (3)
Change History (7)
#3
@
11 years ago
- Keywords commit added
- Summary WP oEmbed: the iframe height attribute doesn't need "px" → WP oEmbed: Improve height attribute sanitization
34527.3.patch is a simpler version of the second patch. The double NOT bitwise operator turns NaN into 0, removing the need for an isNaN check.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

Introduced back in August, see https://github.com/swissspidy/oEmbed-API/commit/4afbd5f4fa382b5f0afa4f34b9d4cb1dd678bc88.
While looking at this now, I think we should make sure that
heightis an actual number, to prevent setting the height to anything else. See 34527.2.patch