diff --git src/wp-admin/includes/privacy-tools.php src/wp-admin/includes/privacy-tools.php
index efe46cce32..927e41e8fe 100644
|
|
|
function wp_privacy_generate_personal_data_export_file( $request_id ) {
|
| 320 | 320 | fclose( $file ); |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | | $stripped_email = str_replace( '@', '-at-', $email_address ); |
| 324 | | $stripped_email = sanitize_title( $stripped_email ); // slugify the email address |
| 325 | 323 | $obscura = wp_generate_password( 32, false, false ); |
| 326 | | $file_basename = 'wp-personal-data-file-' . $stripped_email . '-' . $obscura; |
| | 324 | $file_basename = 'wp-personal-data-file-' . $obscura; |
| 327 | 325 | $html_report_filename = $file_basename . '.html'; |
| 328 | 326 | $html_report_pathname = wp_normalize_path( $exports_dir . $html_report_filename ); |
| 329 | 327 | $file = fopen( $html_report_pathname, 'w' ); |