From: Aryeh Gregor Date: Thu, 1 Jan 2009 01:27:40 +0000 (+0000) Subject: Make sure fragments for Titles are urlencoded X-Git-Tag: 1.31.0-rc.0~43644 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=d783f4eb022fbc251fc5fc0572b1b9f9b5114a31;p=lhc%2Fweb%2Fwiklou.git Make sure fragments for Titles are urlencoded --- 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' ) ); } #----------------------------------------------------------------------------