[wp-trac] [WordPress Trac] #6218: Wordpress modifies URL data in
href's
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 14 07:58:50 GMT 2008
#6218: Wordpress modifies URL data in href's
---------------------+------------------------------------------------------
Reporter: hexley | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
Data inside an href is changed, and I do not think under any case should a
user entered url be changed unless outside an href. Currently the &
(ampersand) gets url encoded, as seen here:
<a href="http://example.com/lists/?p=subscribe&id=1">
should be:
<a href="http://example.com/lists/?p=subscribe&id=1">
This of course pisses of a html validator.
I think this is also wrong:
<a href="http://example.com/wp-admin/post.php?action=edit&post=119"
title="Edit post">Edit This</a>
As you can see, URL encode on the ampersand again. While a browser
recovers from this, the W3C expressly states you should only do this when
you want to show an & on the page, not in a url that will end up in a
browser.
It is now making a lot of sense why some urls emailed to others are
failing on OS X mail.app
--
Ticket URL: <http://trac.wordpress.org/ticket/6218>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list