Index: trunk/phase3/includes/SpecialExport.php |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | header( "Content-type: application/xml; charset=utf-8" ); |
135 | 135 | if( $wgRequest->getCheck( 'wpDownload' ) ) { |
136 | 136 | // Provide a sane filename suggestion |
137 | | - $filename = $wgSitename . '-' . wfTimestampNow() . '.xml'; |
| 137 | + $filename = urlencode( $wgSitename . '-' . wfTimestampNow() . '.xml' ); |
138 | 138 | $wgRequest->response()->header( "Content-disposition: attachment;filename={$filename}" ); |
139 | 139 | } |
140 | 140 | $pages = explode( "\n", $page ); |