Index: includes/Article.php =================================================================== --- includes/Article.php (revision 42385) +++ includes/Article.php (working copy) @@ -1076,7 +1076,7 @@ } } else { $msg = $wgOut->parse( wfMsg( 'confirm_purge' ) ); - $action = htmlspecialchars( $_SERVER['REQUEST_URI'] ); + $action = htmlspecialchars( $wgRequest->getRequestURL() ); $button = htmlspecialchars( wfMsg( 'confirm_purge_button' ) ); $msg = str_replace( '$1', "