From b64557985390732e49ac30d9e88cb1cccd2cf561 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 14 May 2009 20:45:14 +0000 Subject: [PATCH] (bug 18656) Use proper directory separators in wfMkdirParents(). Normalized all \ or / to DIRECTORY_SEPARATOR. --- RELEASE-NOTES | 1 + includes/GlobalFunctions.php | 2 ++ 2 files changed, 3 insertions(+) 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; -- 2.20.1