mirror of
https://github.com/nextcloud/server.git
synced 2026-03-08 18:28:16 +01:00
dont set the encryption flag for existing non-encrypted files
This commit is contained in:
@@ -107,10 +107,9 @@ class OC_FileProxy_Encryption extends OC_FileProxy{
|
||||
}
|
||||
|
||||
public function postGetMimeType($path,$mime){
|
||||
if((!OC_FileCache::inCache($path) and self::shouldEncrypt($path)) or self::isEncrypted($path)){
|
||||
return OC_Helper::getMimeType('crypt://'.$path,'w');
|
||||
}else{
|
||||
return $mime;
|
||||
if(self::isEncrypted($path)){
|
||||
$mime=OC_Helper::getMimeType('crypt://'.$path,'w');
|
||||
}
|
||||
return $mime;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user