mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
only encrypt files and files_versions
This commit is contained in:
parent
035646c0f6
commit
d203296e35
1 changed files with 13 additions and 1 deletions
|
|
@ -278,7 +278,19 @@ class Encryption implements IEncryptionModule {
|
|||
* @return boolean
|
||||
*/
|
||||
public function shouldEncrypt($path) {
|
||||
return true;
|
||||
$parts = explode('/', $path);
|
||||
if (count($parts) < 3) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($parts[2] == '/files/') {
|
||||
return true;
|
||||
}
|
||||
if ($parts[2] == '/files_versions/') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue