[wp-trac] [WordPress Trac] #20383: Strip trailing punctuation with canonical URLs
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 7 03:59:49 UTC 2012
#20383: Strip trailing punctuation with canonical URLs
--------------------------+----------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Canonical | Version:
Severity: normal | Keywords:
--------------------------+----------------------------
A follow-up to #7537 where we removed %20 and " " from the end of URLs, we
should try to remove all sorts of punctuation from the end of a URL, both
URL-encoded and decoded.
Example bad URLs we should surely be able to resolve:
http://ma.tt/2012/03/productivity-per-square-inch/%7B
http://ma.tt/2012/03/productivity-per-square-inch/)
http://ma.tt/2012/03/productivity-per-square-inch/,
http://ma.tt/2012/03/productivity-per-square-inch/!
More difficult when there is no trailing slash in the permalink structure
(or the link requested, regardless of permalink structure), but if
is_404() is taken into account, it should be doable to trail various
pieces of punctuation and see if we can get things to resolve.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20383>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list