[wp-trac] [WordPress Trac] #18117: get_blog_details is sensitive to path's trailing slash
WordPress Trac
noreply at wordpress.org
Mon Jan 12 04:20:50 UTC 2015
#18117: get_blog_details is sensitive to path's trailing slash
--------------------------------+-------------------------
Reporter: mitchoyoshitaka | Owner: jeremyfelt
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Networks and Sites | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: multisite
--------------------------------+-------------------------
Changes (by jeremyfelt):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"31158"]:
{{{
#!CommitTicketReference repository="" revision="31158"
Use a less complex approach for enforcing path slashes in
`update_blog_details()`
Ensure leading and traling slashes are in place and don't touch anything
in the middle. Validating with `array_filter()` would have missed a
possible valid falsy path - `/my-path/0/`.
Props nacin.
Fixes #18117.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18117#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list