[wp-trac] [WordPress Trac] #54261: KSES: Allow PDFs to be embeded as objects

WordPress Trac noreply at wordpress.org
Thu Dec 2 00:54:18 UTC 2021


#54261: KSES: Allow PDFs to be embeded as objects
-------------------------------------------------+-------------------------
 Reporter:  pento                                |       Owner:  pento
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion needs-testing  |     Focuses:
  has-unit-tests needs-dev-note                  |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 In [changeset:"52304" 52304]:
 {{{
 #!CommitTicketReference repository="" revision="52304"
 KSES: Allow attributes to be restricted via callbacks.

 Add callback validation to HTML tag attributes for increased flexibility
 over an array of values only.

 In `object` tags, validate the `data` attribute via a callback to ensure
 it is a PDF and matches the `type` attribute. This prevents mime type
 mismatches in browsers.

 Follow up to [51963].

 Props Pento, dd32, swissspidy, xknown, peterwilsoncc.
 Fixes #54261.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54261#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list