dont set the encryption flag for existing non-encrypted files
This commit is contained in:
parent
857535403c
commit
01fcc080bb
|
@ -107,10 +107,9 @@ class OC_FileProxy_Encryption extends OC_FileProxy{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function postGetMimeType($path,$mime){
|
public function postGetMimeType($path,$mime){
|
||||||
if((!OC_FileCache::inCache($path) and self::shouldEncrypt($path)) or self::isEncrypted($path)){
|
if(self::isEncrypted($path)){
|
||||||
return OC_Helper::getMimeType('crypt://'.$path,'w');
|
$mime=OC_Helper::getMimeType('crypt://'.$path,'w');
|
||||||
}else{
|
|
||||||
return $mime;
|
|
||||||
}
|
}
|
||||||
|
return $mime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue