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