From e6e3b1aa357044c1eb65b92a1f2e643c545c607b Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 21 Mar 2008 18:27:56 +0000 Subject: [PATCH] Cleanup slashing in wp_mkdir_p git-svn-id: http://svn.automattic.com/wordpress/trunk@7455 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 2421f360d..6876ff8c6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1029,6 +1029,7 @@ function wp_get_original_referer() { function wp_mkdir_p( $target ) { // from php.net/mkdir user contributed notes + $target = str_replace( '//', '/', $target ); if ( file_exists( $target ) ) return @is_dir( $target );