mirror of
https://github.com/nextcloud/server.git
synced 2026-07-05 12:34:39 +02:00
Compare dirname() results to DIRECTORY_SEPARATOR, not '/'
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user