[wp-trac] [WordPress Trac] #31499: Trim non-breaking spaces from URLs
WordPress Trac
noreply at wordpress.org
Mon Mar 2 06:34:39 UTC 2015
#31499: Trim non-breaking spaces from URLs
--------------------------+------------------
Reporter: pento | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Canonical | Version: 2.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------
Changes (by pento):
* keywords: => has-patch
* version: => 2.3
* component: General => Canonical
* milestone: Awaiting Review => 4.2
Comment:
[attachment:nbsp.html] is a sample test case.
[attachment:31499.diff] trims any non-breaking spaces from the end of the
URL, it doesn't trim them if there's a trailing `/` - the assumption is
that they were incorrectly included in a copy/paste, for example, if
they're at the very end of the URL. If there's a trailing `/`, we assume
it's intentional.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31499#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list