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/wpPrivacySendPersonalDataExportEmail.php

    r46586 r47144  
    105105     */
    106106    public function test_function_should_send_export_link_to_requester() {
    107         $archive_url = wp_privacy_exports_url() . 'wp-personal-data-file-requester-at-example-com-Wv0RfMnGIkl4CFEDEEkSeIdfLmaUrLsl.zip';
     107        $archive_url = wp_privacy_exports_url() . 'wp-personal-data-file-Wv0RfMnGIkl4CFEDEEkSeIdfLmaUrLsl.zip';
    108108        update_post_meta( self::$request_id, '_export_file_url', $archive_url );
    109109
Note: See TracChangeset for help on using the changeset viewer.