Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#8699 closed enhancement (fixed)

Empty index.php for plugins dir

Reported by: scribu's profile scribu Owned by:
Milestone: 2.8 Priority: low
Severity: normal Version: 2.7
Component: General Keywords: has-patch tested
Focuses: Cc:

Description

I suggest that an empty index.php file be also added to /wp-content/plugins/ and even /wp-content/themes/, just like the one in /wp-content/

Either that, or remove the existing file in /wp-content/.

PS: A google search for "index of" wp-content/plugins shows over 1 million hits.

Attachments (1)

plugins_index.patch (254 bytes) - added by mrmist 16 years ago.
plugins index.

Download all attachments as: .zip

Change History (4)

#1 @mrmist
16 years ago

  • Keywords has-patch added

Though note #8260

@mrmist
16 years ago

plugins index.

#2 @mrmist
16 years ago

  • Keywords tested added

Tested against 10937 on IIS and Apache2 hosts - plugin section functions as normal, plugin editor ok, seems to have no undesirable effects on the menu any more since #6478 was fixed.

Seems fine to go ahead with.

#3 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10940]) Add index.php to plugins and themes dirs to prevent dir listings. fixes #8699

Note: See TracTickets for help on using tickets.