From: Gabriel Wicke Date: Mon, 10 May 2004 19:16:50 +0000 (+0000) Subject: quote in separate function as well X-Git-Tag: 1.3.0beta1~95 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=c3d8e87725f96a6cbdacab5f602401573bd4410f;p=lhc%2Fweb%2Fwiklou.git quote in separate function as well --- diff --git a/includes/Title.php b/includes/Title.php index 3bee660a31..7f1c63d8a4 100644 --- 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