(bug 18656) Use proper directory separators in wfMkdirParents(). Normalized all ...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 14 May 2009 20:45:14 +0000 (20:45 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 14 May 2009 20:45:14 +0000 (20:45 +0000)
RELEASE-NOTES
includes/GlobalFunctions.php

index b939db4..64351f6 100644 (file)
@@ -117,6 +117,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 18718) Comma after a } create a error in IE
 * (bug 18716) Removed redundant class in Modern skin CSS for category links and
   tweaked spacing.
+* (bug 18656) Use proper directory separators in wfMkdirParents()
 
 == API changes in 1.16 ==
 
index c5a6f29..5fb6ccc 100644 (file)
@@ -2064,6 +2064,8 @@ function wfMkdirParents( $dir, $mode = null, $caller = null ) {
        if( strval( $dir ) === '' || file_exists( $dir ) )
                return true;
 
+       $dir = str_replace( array( '\\', '/' ), DIRECTORY_SEPARATOR, $dir );
+
        if ( is_null( $mode ) )
                $mode = $wgDirectoryMode;