[wp-trac] [WordPress Trac] #27866: Multisite subdirectory install breaks if network path has uppercase letters
WordPress Trac
noreply at wordpress.org
Fri Apr 18 18:07:07 UTC 2014
#27866: Multisite subdirectory install breaks if network path has uppercase letters
-------------------------------------------------+-------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9.1
Component: Bootstrap/Load | Version: 3.9
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses: multisite
tests |
-------------------------------------------------+-------------------------
Comment (by jeremyfelt):
When a mixed case path is used, the root site does miss line 56, though it
seems to end up finding the site just fine in the last else. I haven't
tested with many paths, so that could change.
[https://core.trac.wordpress.org/attachment/ticket/27866/27866.2.diff
27866.2.diff] adds a `strcasecmp()` to the comparison of `$path` and
`$current_site->path`. Any requests for the root site will now be caught
there. Any requests for sub sites will be caught with the `stripos()`
check.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27866#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list