WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#13322 closed defect (bug) (fixed)

get_plugins() uses a closed dir handle

Reported by: ryan Owned by: westi
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Plugins Keywords:
Focuses: Cc:

Description

Reported by Milosav.

@closedir( $plugins_dir );
@closedir( $plugins_subdir );
if ( !$plugins_dir || empty($plugin_files) )

The test against plugins_dir is performed after closedir.

Attachments (1)

13322.diff (517 bytes) - added by ryan 4 years ago.

Download all attachments as: .zip

Change History (4)

ryan4 years ago

comment:1 ryan4 years ago

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

(In [14540]) Don't use closed dir handle. Props Miloslav. fixes #13322

comment:2 nacin4 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:3 nacin4 years ago

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

(In [14545]) Apply [14540] to get_mu_plugins and get_dropins. fixes #13322, props Miloslav.

Note: See TracTickets for help on using tickets.