-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't believe sftp when it tells us the mtime is less than we know it is #40105
base: master
Are you sure you want to change the base?
Conversation
@@ -413,14 +427,13 @@ | |||
return false; | |||
} | |||
if (!$this->file_exists($path)) { | |||
$this->getConnection()->put($this->absPath($path), ''); | |||
return $this->getConnection()->put($this->absPath($path), ''); |
Check notice
Code scanning / Psalm
InternalMethod Note
Signed-off-by: Robin Appelman <[email protected]>
81cc406
to
4d6d716
Compare
use phpseclib\Net\SFTP\Stream; | ||
|
||
/** | ||
* Uses phpseclib's Net\SFTP class and the Net\SFTP\Stream stream wrapper to | ||
* provide access to SFTP servers. | ||
*/ | ||
class SFTP extends \OC\Files\Storage\Common { | ||
class SFTP extends \OC\Files\Storage\Common { |
Check notice
Code scanning / Psalm
DeprecatedInterface Note
if ($updated) { | ||
$req = \OC::$server->get(IRequest::class); | ||
if ($req->getHeader('x-debug-updated')) { | ||
header("x-debug-updated: '$path' updated $storageTime > $time", false); |
Check failure
Code scanning / Psalm
TaintedHeader Error
if ($updated) { | ||
$req = \OC::$server->get(IRequest::class); | ||
if ($req->getHeader('x-debug-updated')) { | ||
header("x-debug-updated: '$path' updated $storageTime > $time", false); |
Check failure
Code scanning / Psalm
TaintedHeader Error
Signed-off-by: Robin Appelman <[email protected]>
4d6d716
to
847f6f5
Compare
No description provided.