[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 19:44:15 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 nacin):

 esc_url() isn't right, as it encodes ampersands for display. At most you'd
 want esc_url_raw() — but really, we're just looking to avoid issues with
 escaping data for a JS string.

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


More information about the wp-trac mailing list