[wp-trac] [WordPress Trac] #22267: Make trailingslashit() and untrailingslashit() work with backslashes
WordPress Trac
noreply at wordpress.org
Sat Mar 1 21:44:45 UTC 2014
#22267: Make trailingslashit() and untrailingslashit() work with backslashes
-----------------------------------------------+---------------------
Reporter: knutsp | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.9
Component: Filesystem API | Version: 2.2
Severity: normal | Resolution: fixed
Keywords: has-patch commit needs-unit-tests | Focuses:
-----------------------------------------------+---------------------
Changes (by nacin):
* owner: => nacin
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"27344"]:
{{{
#!CommitTicketReference repository="" revision="27344"
Strip backslashes, not just forward slashes, from untrailingslashit().
trailingslashit() will now remove any forward or backslashes from the end
of a string before appending a forward slash.
props knutsp, willmot.
fixes #22267.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22267#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list