dont set the encryption flag for existing non-encrypted files

remotes/origin/stable4
Robin Appelman 15 years ago
parent 857535403c
commit 01fcc080bb
  1. 7
      apps/files_encryption/lib/proxy.php

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

Loading…
Cancel
Save