[wp-trac] [WordPress Trac] #4788: wp_loginout() / ampersand in URL
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 21 12:25:38 GMT 2007
#4788: wp_loginout() / ampersand in URL
----------------------+-----------------------------------------------------
Reporter: raptorNL | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.4 (future)
Component: General | Version: 2.2.2
Severity: minor | Keywords:
----------------------+-----------------------------------------------------
The '''wp_loginout()''' function does not escape ampersands with the
proper entity in the '''Logout''' url, failing the code to pass W3C
(X)HTML validation.
For instance, on my local test blog, it generates the following:
{{{<a href="http://localhost/wp/wp-
login.php?action=logout&redirect_to=%2Fhome%2F">Logout</a>}}}
The ampersand between '''action=logout''' and '''redirect_to=%2Fhome%2F'''
should be escaped with '''&'''.
--
Ticket URL: <http://trac.wordpress.org/ticket/4788>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list