[wp-trac] [WordPress Trac] #48497: If preformatted block contains "<script>" tag page would not save

WordPress Trac noreply at wordpress.org
Tue Nov 5 06:02:20 UTC 2019


#48497: If preformatted block contains "<script>" tag page would not save
--------------------------+-----------------------------
 Reporter:  martynasma    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.2.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If preformatted block content contains "<script>" (with or without any
 attributes), saving page fails with an error "Updating failed".

 This happens even with < and > are encoded:


 {{{
 <pre class="wp-block-preformatted"><script></pre>
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48497>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list