dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fad1c6c
)
Don't let underscore differences cause read whitelist matches to fail (bug 11668)
author
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 16 May 2008 20:06:19 +0000
(20:06 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 16 May 2008 20:06:19 +0000
(20:06 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
28ee6fb
..
89e20b0
100644
(file)
--- 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;
/**