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