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

remotes/origin/stable6
Thomas Mueller 12 years ago
parent 84a8aea410
commit 87521f6c6e
  1. 2
      lib/files/cache/updater.php

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

Loading…
Cancel
Save