[wp-trac] [WordPress Trac] #4723: kses removes last attribute in empty xhtml elements

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 9 22:32:34 UTC 2009


#4723: kses removes last attribute in empty xhtml elements
--------------------------+-------------------------------------------------
 Reporter:  whoismanu     |       Owner:  ryan                                
     Type:  defect (bug)  |      Status:  new                                 
 Priority:  normal        |   Milestone:  2.9                                 
Component:  Formatting    |     Version:  2.2.1                               
 Severity:  normal        |    Keywords:  kses posting verification formatting
--------------------------+-------------------------------------------------

Comment(by hakre):

 confirmed, this is still current. Even more worse, that function now
 addslashes:

 {{{
 in: string '<img width="700" height="525" alt="Wrecked I"
 src="http://www.whoismanu.com/wp-content/2007_08/img_2659_web.jpg"/>'
 (length=114)

 out: string '<img width=\"700\" height=\"525\" alt=\"Wrecked I\">'
 (length=52)
 }}}

 looks like the faulty stripslashes mis-concept in wordpress breaks necks
 again.

  * [2902] ryan  2005.09.21 18:35:35 stripslashes before running kses.
 Props donncha. fixes #1697

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/4723#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list