From: Aaron Schulz Date: Fri, 16 May 2008 20:06:19 +0000 (+0000) Subject: Don't let underscore differences cause read whitelist matches to fail (bug 11668) X-Git-Tag: 1.31.0-rc.0~47592 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=756bad3f6c50b016a62de360dc42f46f351e253c;p=lhc%2Fweb%2Fwiklou.git Don't let underscore differences cause read whitelist matches to fail (bug 11668) --- diff --git a/includes/Title.php b/includes/Title.php index 28ee6fbdef..89e20b0f95 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1445,7 +1445,9 @@ class Title { * Check for explicit whitelisting */ $name = $this->getPrefixedText(); - if( in_array( $name, $wgWhitelistRead, true ) ) + $dbName = $this->getPrefixedDBKey(); + // Check with and without underscores + if( in_array($name,$wgWhitelistRead,true) || in_array($dbName,$wgWhitelistRead,true) ) return true; /**