[wp-trac] Re: [WordPress Trac] #7648: js_escape() wrongly escapes too many characters

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 10:41:00 GMT 2009


#7648: js_escape() wrongly escapes too many characters
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:  2.6.1    
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by DD32):

 @Denis-de-Bernardy: Correct, In HTML Attributes.

 However, Not in <script> blocks as presented by Viper007Bond.

 However, I think the js_escape() function might be mis-used in this case,
 In that, I thought it was designed for escaping for attribute-usage, much
 like attribute_escape().. though i could be wrong.

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


More information about the wp-trac mailing list