Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#10497 closed defect (bug) (fixed)

PHP safe-mode prevents WordPress from creating new directories

Reported by: remi Owned by:
Priority: normal Milestone: 3.0
Component: Filesystem API Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Running WordPress in safe-mode prevents the installation of plugins via the admin interface, because it is trying to create a new directory that ends with a "/", which is forbidden in safe-mode.

I created a patch that apply untrailingslashit to the path before creating it.

Attachments (1)

safemode-mkdir.diff (479 bytes ) - added by remi 17 years ago.

Download all attachments as: .zip

Change History (7)

@remi
17 years ago

#1 @remi
17 years ago

  • Severity majornormal

#2 follow-up: @Denis-de-Bernardy
17 years ago

dup of #8830

#3 in reply to: ↑ 2 @remi
17 years ago

Replying to Denis-de-Bernardy:

dup of #8830

I filed it as a new bug since it doesn't affect the same file. But yes, it's the same problem.

#4 @scribu
17 years ago

  • Component GeneralFilesystem
  • Keywords has-patch added
  • Milestone Unassigned3.0

#5 @dd32
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [12741]) Fix WP_Filesystem_Direct::mkdir() when running under safe_mode on certain versions of PHP. Props remi. Fixes #10497

#6 @dd32
17 years ago

(In [12741]) Fix WP_Filesystem_Direct::mkdir() when running under safe_mode on certain versions of PHP. Props remi. Fixes #10497

Note: See TracTickets for help on using tickets.