Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -109,9 +109,7 @@ |
110 | 110 | public function addMobileFooter( &$obj, &$tpl ) { |
111 | 111 | global $wgRequest; |
112 | 112 | $footerlinks = $tpl->data['footerlinks']; |
113 | | - $mobileViewUrl = $wgRequest->getRequestURL(); |
114 | | - $mobileViewUrl = wfAppendQuery( $mobileViewUrl, 'useFormat=mobile' ); |
115 | | - $mobileViewUrl = htmlspecialchars( $mobileViewUrl ); |
| 113 | + $mobileViewUrl = $wgRequest->escapeAppendQuery( 'useFormat=mobile' ); |
116 | 114 | |
117 | 115 | $tpl->set('mobileview', "<a href='{$mobileViewUrl}'>".wfMsg( 'mobile-frontend-view')."</a>"); |
118 | 116 | $footerlinks['places'][] = 'mobileview'; |