For MediaWiki (recent comments | status changes | tags | authors | states | release notes)
Index: trunk/phase3/includes/SpecialExport.php =================================================================== --- trunk/phase3/includes/SpecialExport.php (revision 19934) +++ trunk/phase3/includes/SpecialExport.php (revision 19935) @@ -104,7 +104,13 @@ } } }*/ - $exporter->pageByName( $page ); + + #Bug 8824: Only export pages the user can read + $title = Title::newFromText( $page ); + if( is_null( $title ) ) continue; #TODO: perhaps output an <error> tag or something. + if( !$title->userCan( 'read' ) ) continue; #TODO: perhaps output an <error> tag or something. + + $exporter->pageByTitle( $title ); } $exporter->closeStream();