dirname('/test.txt') returns '\' on windows whereas on linux we get back '.'

This commit is contained in:
Thomas Mueller 2013-06-14 11:59:30 +02:00
parent 84a8aea410
commit 87521f6c6e
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class Updater {
static public function correctFolder($path, $time) {
if ($path !== '' && $path !== '/') {
$parent = dirname($path);
if ($parent === '.') {
if ($parent === '.' || $parent === '\\') {
$parent = '';
}
/**