Multisite: Lowercase REQUEST_URI when matching paths.

props markjaquith, jeremyfelt.
fixes #26403.

Built from https://develop.svn.wordpress.org/trunk@27724


git-svn-id: http://core.svn.wordpress.org/trunk@27561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-03-25 21:05:14 +00:00
parent a10a55cf87
commit c095ad4500
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ if ( !isset( $current_site ) || !isset( $current_blog ) ) {
$_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 );
}
$path = stripslashes( $_SERVER['REQUEST_URI'] );
$path = strtolower( stripslashes( $_SERVER['REQUEST_URI'] ) );
if ( is_admin() ) {
$path = preg_replace( '#(.*)/wp-admin/.*#', '$1/', $path );
}