You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -272,7 +273,7 @@ public function touch(string $path, ?int $mtime = null): bool {
272
273
// sets the modification time of the file to the given value.
273
274
// If mtime is nil the current time is set.
274
275
// note that the access time of the file always changes to the current time.
275
-
if ($this->file_exists($path) and !$this->isUpdatable($path)) {
276
+
if ($this->file_exists($path) && !$this->isUpdatable($path)) {
276
277
returnfalse;
277
278
}
278
279
$oldMask = umask($this->defUMask);
@@ -328,17 +329,17 @@ public function rename(string $source, string $target): bool {
328
329
$dstParent = dirname($target);
329
330
330
331
if (!$this->isUpdatable($srcParent)) {
331
-
\OC::$server->get(LoggerInterface::class)->error('unable to rename, source directory is not writable : ' . $srcParent, ['app' => 'core']);
332
+
Server::get(LoggerInterface::class)->error('unable to rename, source directory is not writable : ' . $srcParent, ['app' => 'core']);
332
333
returnfalse;
333
334
}
334
335
335
336
if (!$this->isUpdatable($dstParent)) {
336
-
\OC::$server->get(LoggerInterface::class)->error('unable to rename, destination directory is not writable : ' . $dstParent, ['app' => 'core']);
337
+
Server::get(LoggerInterface::class)->error('unable to rename, destination directory is not writable : ' . $dstParent, ['app' => 'core']);
337
338
returnfalse;
338
339
}
339
340
340
341
if (!$this->file_exists($source)) {
341
-
\OC::$server->get(LoggerInterface::class)->error('unable to rename, file does not exists : ' . $source, ['app' => 'core']);
342
+
Server::get(LoggerInterface::class)->error('unable to rename, file does not exists : ' . $source, ['app' => 'core']);
342
343
returnfalse;
343
344
}
344
345
@@ -487,7 +488,7 @@ public function getSourcePath(string $path): string {
487
488
return$fullPath;
488
489
}
489
490
490
-
\OC::$server->get(LoggerInterface::class)->error("Following symlinks is not allowed ('$fullPath' -> '$realPath' not inside '{$this->realDataDir}')", ['app' => 'core']);
491
+
Server::get(LoggerInterface::class)->error("Following symlinks is not allowed ('$fullPath' -> '$realPath' not inside '{$this->realDataDir}')", ['app' => 'core']);
491
492
thrownewForbiddenException('Following symlinks is not allowed', false);
0 commit comments