[wp-trac] [WordPress Trac] #12126: XHTML well-formedness: ampersand in building query

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 4 16:41:03 UTC 2010


#12126: XHTML well-formedness: ampersand in building query
--------------------------+-------------------------------------------------
 Reporter:  brettz95      |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 In /wp-admin/edit-form-advanced.php, after making a submission,
 preview=true was set (line 48), but its unescaped ampersand caused an
 error in application/xhtml+xml . Following add_query_arg(), to /wp-
 includes/functions.php, and in turn to build_query() where the ampersand
 is added (and which goes to _http_build_query in /wp-includes/compat.php
 where the separator argument, here the ampersand, is used (unmodified) as
 the glue in an implode). XML requires ampersands to be escaped, so
 changing "&" to "&" (as in the patch) fixes the issue.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12126>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list