From c095ad45006d20a6674e3bfe472bcd04ca86baab Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 25 Mar 2014 21:05:14 +0000 Subject: [PATCH] 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 --- wp-includes/ms-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-settings.php b/wp-includes/ms-settings.php index 6e3a4ebd66..ddcbb997f2 100644 --- a/wp-includes/ms-settings.php +++ b/wp-includes/ms-settings.php @@ -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 ); }