﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
8830	wp_mkdir_p doesn't work with safe mode enabled	remi		"The `wp_mkdir_p` function (which is used by many WP features like media uploading) doesn't work when PHP's safe-mode is enabled because it allows trailing slashes at the end of the directories it tries to create.

Adding this code at the beginning of the function solves the problem:

{{{
if (substr($target, -1) == ""/"") {
  $target = substr($target, 0, -1);
}
}}}"	defect (bug)	closed	normal	3.0	Filesystem	2.7	normal	fixed	needs-patch bug-hunt	
