From 606e4106aafcf4642607b92eac333556014ddd32 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sun, 23 May 2010 05:54:32 +0000 Subject: [PATCH] Ensure slashing of paths returned by WP_Filesystem_Base::find_folder() is consistent with the slashing of paths; Affects Windows machines using the Direct transport. git-svn-id: https://develop.svn.wordpress.org/trunk@14810 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-filesystem-base.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/class-wp-filesystem-base.php b/wp-admin/includes/class-wp-filesystem-base.php index d501a307e3..0aaadeba4a 100644 --- a/wp-admin/includes/class-wp-filesystem-base.php +++ b/wp-admin/includes/class-wp-filesystem-base.php @@ -142,6 +142,7 @@ class WP_Filesystem_Base { if ( defined($constant) && $folder === $dir ) return trailingslashit(constant($constant)); } elseif ( 'direct' == $this->method ) { + $folder = str_replace('\\', '/', $folder); //Windows path sanitiation return trailingslashit($folder); }