http://www.mediawiki.org/wiki/Special:Code/MediaWiki/93650
Revision: 93650 Author: hartman Date: 2011-08-01 20:42:14 +0000 (Mon, 01 Aug 2011) Log Message: ----------- Wow, apparently WebRequest has it's own versions of these appendQuery(). Modified Paths: -------------- trunk/extensions/MobileFrontend/MobileFrontend.php Modified: trunk/extensions/MobileFrontend/MobileFrontend.php =================================================================== --- trunk/extensions/MobileFrontend/MobileFrontend.php 2011-08-01 20:40:11 UTC (rev 93649) +++ trunk/extensions/MobileFrontend/MobileFrontend.php 2011-08-01 20:42:14 UTC (rev 93650) @@ -109,9 +109,7 @@ public function addMobileFooter( &$obj, &$tpl ) { global $wgRequest; $footerlinks = $tpl->data['footerlinks']; - $mobileViewUrl = $wgRequest->getRequestURL(); - $mobileViewUrl = wfAppendQuery( $mobileViewUrl, 'useFormat=mobile' ); - $mobileViewUrl = htmlspecialchars( $mobileViewUrl ); + $mobileViewUrl = $wgRequest->escapeAppendQuery( 'useFormat=mobile' ); $tpl->set('mobileview', "<a href='{$mobileViewUrl}'>".wfMsg( 'mobile-frontend-view')."</a>"); $footerlinks['places'][] = 'mobileview'; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs