From: Chad Horohoe Date: Thu, 14 May 2009 20:45:14 +0000 (+0000) Subject: (bug 18656) Use proper directory separators in wfMkdirParents(). Normalized all ... X-Git-Tag: 1.31.0-rc.0~41803 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=b64557985390732e49ac30d9e88cb1cccd2cf561;p=lhc%2Fweb%2Fwiklou.git (bug 18656) Use proper directory separators in wfMkdirParents(). Normalized all \ or / to DIRECTORY_SEPARATOR. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b939db4cc3..64351f605f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index c5a6f29135..5fb6ccc23b 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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;