Multisite: Lowercase REQUEST_URI when matching paths.

props markjaquith, jeremyfelt.
fixes #26403.


git-svn-id: https://develop.svn.wordpress.org/trunk@27724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-03-25 21:04:23 +00:00
parent 9215e9f5ab
commit 51847e0c73
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 ); $_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 );
} }
$path = stripslashes( $_SERVER['REQUEST_URI'] ); $path = strtolower( stripslashes( $_SERVER['REQUEST_URI'] ) );
if ( is_admin() ) { if ( is_admin() ) {
$path = preg_replace( '#(.*)/wp-admin/.*#', '$1/', $path ); $path = preg_replace( '#(.*)/wp-admin/.*#', '$1/', $path );
} }