[OC/Files/Cache]: Fix wrong usage of basename
Fix https://github.com/nextcloud/server/issues/3837 Signed-off-by: Xuanwo <xuanwo@yunify.com>
This commit is contained in:
parent
8d91c84ec4
commit
210f4106c4
|
@ -17,6 +17,7 @@
|
||||||
* @author TheSFReader <TheSFReader@gmail.com>
|
* @author TheSFReader <TheSFReader@gmail.com>
|
||||||
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
||||||
* @author Vincent Petry <pvince81@owncloud.com>
|
* @author Vincent Petry <pvince81@owncloud.com>
|
||||||
|
* @author Xuanwo <xuanwo@yunify.com>
|
||||||
*
|
*
|
||||||
* @license AGPL-3.0
|
* @license AGPL-3.0
|
||||||
*
|
*
|
||||||
|
@ -532,7 +533,7 @@ class Cache implements ICache {
|
||||||
$this->connection->executeQuery($moveSql, [$targetStorageId, $targetPath, md5($targetPath), basename($targetPath), $newParentId, $sourceId]);
|
$this->connection->executeQuery($moveSql, [$targetStorageId, $targetPath, md5($targetPath), basename($targetPath), $newParentId, $sourceId]);
|
||||||
$this->connection->commit();
|
$this->connection->commit();
|
||||||
} else {
|
} else {
|
||||||
$this->connection->executeQuery($moveSql, [$targetStorageId, $targetPath, md5($targetPath), basename($targetPath), $newParentId, $sourceId]);
|
$this->connection->executeQuery($moveSql, [$targetStorageId, $targetPath, md5($targetPath), \OC_Util::basename($targetPath), $newParentId, $sourceId]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->moveFromCacheFallback($sourceCache, $sourcePath, $targetPath);
|
$this->moveFromCacheFallback($sourceCache, $sourcePath, $targetPath);
|
||||||
|
|
Loading…
Reference in New Issue