Skip to content
Snippets Groups Projects
Commit d203296e authored by Thomas Müller's avatar Thomas Müller
Browse files

only encrypt files and files_versions

parent 035646c0
Branches
No related tags found
No related merge requests found
......@@ -278,9 +278,21 @@ class Encryption implements IEncryptionModule {
* @return boolean
*/
public function shouldEncrypt($path) {
$parts = explode('/', $path);
if (count($parts) < 3) {
return false;
}
if ($parts[2] == '/files/') {
return true;
}
if ($parts[2] == '/files_versions/') {
return true;
}
return false;
}
/**
* calculate unencrypted size
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment