[wp-trac] [WordPress Trac] #24907: Escape admin_url() when used for ajax_url in admin header

WordPress Trac noreply at wordpress.org
Sun Aug 25 18:28:35 UTC 2013


#24907: Escape admin_url() when used for ajax_url in admin header
--------------------------+------------------------------
 Reporter:  jeremyfelt    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Security      |     Version:  2.7
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by c3mdigital):

 I think we should be json encoding PHP string variables when outputting to
 javascript.  This eliminates the need for escaping and surrounding with
 quotes.

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


More information about the wp-trac mailing list