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

WordPress Trac noreply at wordpress.org
Mon Dec 6 11:06:55 UTC 2021


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

Comment (by SergeyBiryukov):

 In [changeset:"52326" 52326]:
 {{{
 #!CommitTicketReference repository="" revision="52326"
 KSES: Use the polyfilled PHP 8 string functions in
 `_wp_kses_allow_pdf_objects()`:

 * `str_contains()`
 * `str_ends_with()`
 * `str_starts_with()`

 Additionally, include a test for a PDF file in an `<object>` tag with an
 unsupported protocol.

 Follow-up to [51963], [52039], [52040], [52304], [52309].

 Props TobiasBg, ramonopoly.
 See #54261.
 }}}

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


More information about the wp-trac mailing list