[wp-trac] [WordPress Trac] #44195: "Silence is golden" index.html generates output

WordPress Trac noreply at wordpress.org
Tue May 22 17:55:48 UTC 2018


#44195: "Silence is golden" index.html generates output
--------------------------+-----------------------------
 Reporter:  Ov3rfly       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Privacy       |    Version:  4.9.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Unwanted listing of folders in wp-content is ususally prevented via a file
 index.php with a php comment `// Silence is golden.` which does not return
 any output.

 * wp-content/index.php
 * wp-content/plugins/index.php
 * wp-content/themes/index.php
 * ...

 The new storage folder for personal data uses index.html with the text
 `Silence is golden.`

 * wp-content/uploads/wp-personal-data-exports/index.html

 Due to consistency the file index.html should not generate any output = be
 empty.

 Not sure why index.html is used here at all, maybe to avoid putting a .php
 in uploads folder? Maybe somebody knows the reason, thanks for a heads up.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44195>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list