Compare dirname() results to DIRECTORY_SEPARATOR, not '/'
This commit is contained in:
parent
ca675d7b08
commit
bd3ead0d31
1 changed files with 1 additions and 1 deletions
2
lib/private/files/cache/updater.php
vendored
2
lib/private/files/cache/updater.php
vendored
|
@ -142,7 +142,7 @@ class Updater {
|
|||
$cache->update($id, array('mtime' => $time, 'etag' => $storage->getETag($internalPath)));
|
||||
if ($realPath !== '') {
|
||||
$realPath = dirname($realPath);
|
||||
if($realPath === '/') {
|
||||
if($realPath === DIRECTORY_SEPARATOR ) {
|
||||
$realPath = "";
|
||||
}
|
||||
// check storage for parent in case we change the storage in this step
|
||||
|
|
Loading…
Reference in a new issue