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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment