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:
22225c7
)
quote in separate function as well
author
Gabriel Wicke
<gwicke@users.mediawiki.org>
Mon, 10 May 2004 19:16:50 +0000
(19:16 +0000)
committer
Gabriel Wicke
<gwicke@users.mediawiki.org>
Mon, 10 May 2004 19:16:50 +0000
(19:16 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
3bee660
..
7f1c63d
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-522,7
+522,7
@@
class Title {
# protect css/js subpages of user pages
# XXX: this might be better using restrictions
global $wgUser;
- return ( $wgUser->isSysop() or preg_match("/^".
$wgUser->getName(
)."/", $this->mTextform) );
+ return ( $wgUser->isSysop() or preg_match("/^".
preg_quote($wgUser->getName()
)."/", $this->mTextform) );
}
# Accessor/initialisation for mRestrictions