From c3d8e87725f96a6cbdacab5f602401573bd4410f Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 10 May 2004 19:16:50 +0000 Subject: [PATCH] quote in separate function as well --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1