only encrypt files and files_versions

This commit is contained in:
Thomas Müller 2015-04-01 13:58:50 +02:00
parent 035646c0f6
commit d203296e35

View file

@ -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;
}
/**