Make WordPress Core

Changeset 14810


Ignore:
Timestamp:
05/23/2010 05:54:32 AM (15 years ago)
Author:
dd32
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-base.php

    r13382 r14810  
    143143                    return trailingslashit(constant($constant));
    144144        } elseif ( 'direct' == $this->method ) {
     145            $folder = str_replace('\\', '/', $folder); //Windows path sanitiation
    145146            return trailingslashit($folder);
    146147        }
Note: See TracChangeset for help on using the changeset viewer.