Make WordPress Core


Ignore:
Timestamp:
01/31/2020 12:56:29 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Remove user's email address from personal data export filename.

Use wp_unique_filename() to avoid potential collisions instead.

Props xkon, garrett-eclipse, donmhico, Ov3rfly, Clorith, allendav.
Fixes #44197.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php

    r46644 r47144  
    132132    public static function wpSetUpBeforeClass( $factory ) {
    133133        self::$requester_email      = 'requester@example.com';
    134         self::$export_file_url      = wp_privacy_exports_url() . 'wp-personal-data-file-requester-at-example-com-Wv0RfMnGIkl4CFEDEEkSeIdfLmaUrLsl.zip';
     134        self::$export_file_url      = wp_privacy_exports_url() . 'wp-personal-data-file-Wv0RfMnGIkl4CFEDEEkSeIdfLmaUrLsl.zip';
    135135        self::$request_id           = wp_create_user_request( self::$requester_email, 'export_personal_data' );
    136136        self::$page_index_first     = 1;
Note: See TracChangeset for help on using the changeset viewer.