Strip trailing punctuation with canonical URLs
|Reported by:||nacin||Owned by:||joostdevalk|
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:
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.