Index: trunk/phase3/includes/SpecialExport.php |
— | — | @@ -104,7 +104,13 @@ |
105 | 105 | } |
106 | 106 | } |
107 | 107 | }*/ |
108 | | - $exporter->pageByName( $page ); |
| 108 | + |
| 109 | + #Bug 8824: Only export pages the user can read |
| 110 | + $title = Title::newFromText( $page ); |
| 111 | + if( is_null( $title ) ) continue; #TODO: perhaps output an <error> tag or something. |
| 112 | + if( !$title->userCan( 'read' ) ) continue; #TODO: perhaps output an <error> tag or something. |
| 113 | + |
| 114 | + $exporter->pageByTitle( $title ); |
109 | 115 | } |
110 | 116 | |
111 | 117 | $exporter->closeStream(); |