Make WordPress Core


Ignore:
Timestamp:
01/27/2021 11:45:29 PM (4 years ago)
Author:
whyisjake
Message:

Privacy: Ensure that exported user data reports can't be found with directory listings.

By moving from .html to .php files, we can prevent directory listings, and ensure that WordPress can load.

Fixes #52299.

Props lucasbustamante, xkon, freewebmentor, SergeyBiryukov, whyisjake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r49992 r50037  
    73997399
    74007400    require_once ABSPATH . 'wp-admin/includes/file.php';
    7401     $export_files = list_files( $exports_dir, 100, array( 'index.html' ) );
     7401    $export_files = list_files( $exports_dir, 100, array( 'index.php' ) );
    74027402
    74037403    /**
Note: See TracChangeset for help on using the changeset viewer.