From d783f4eb022fbc251fc5fc0572b1b9f9b5114a31 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 1 Jan 2009 01:27:40 +0000 Subject: [PATCH] Make sure fragments for Titles are urlencoded --- includes/Title.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 122d5c2ecd..e6a414a816 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -452,8 +452,8 @@ class Title { */ static function escapeFragmentForURL( $fragment ) { global $wgEnforceHtmlIds; - return Sanitizer::escapeId( $fragment, - $wgEnforceHtmlIds ? array() : 'xml' ); + return wfUrlencode( Sanitizer::escapeId( $fragment, + $wgEnforceHtmlIds ? array() : 'xml' ) ); } #---------------------------------------------------------------------------- -- 2.20.1