Ticket #43908: 43908.2.diff
| File 43908.2.diff, 1.0 KB (added by , 8 years ago) |
|---|
-
wp-admin/includes/file.php
2042 2042 $obscura = wp_generate_password( 32, false, false ); 2043 2043 $file_basename = 'wp-personal-data-file-' . $stripped_email . '-' . $obscura; 2044 2044 $html_report_filename = $file_basename . '.html'; 2045 $html_report_pathname = $exports_dir . $html_report_filename;2045 $html_report_pathname = wp_normalize_path( $exports_dir . $html_report_filename ); 2046 2046 $file = fopen( $html_report_pathname, 'w' ); 2047 2047 if ( false === $file ) { 2048 2048 wp_send_json_error( __( 'Unable to open export file (HTML report) for writing' ) ); … … 2160 2160 2161 2161 // Save the export file in the request. 2162 2162 update_post_meta( $request_id, '_export_file_url', $archive_url ); 2163 update_post_meta( $request_id, '_export_file_path', $archive_pathname);2163 update_post_meta( $request_id, '_export_file_path', wp_normalize_path( $archive_pathname ) ); 2164 2164 } 2165 2165 2166 2166 /**