diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-15 21:44:58 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-21 20:48:48 +0100 |
commit | d9c7e4c333f858efaaee35d26ea12733d29bd694 (patch) | |
tree | f7180a1491409efc5dc7e5442326c6928ed33ff1 /apps/files_encryption | |
parent | 325858e9e239b726a207ac150404863df509935c (diff) | |
download | nextcloud-server-d9c7e4c333f858efaaee35d26ea12733d29bd694.tar.gz nextcloud-server-d9c7e4c333f858efaaee35d26ea12733d29bd694.zip |
proper mimetypes for encrypted files
Diffstat (limited to 'apps/files_encryption')
-rw-r--r-- | apps/files_encryption/lib/proxy.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 7974d68d487..c53d567ad10 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -115,4 +115,8 @@ class OC_FileProxy_Encryption extends OC_FileProxy{ return false;//cancel the original request } } + + public function postGetMimeType($path,$mime){ + return OC_Helper::getMimeType('crypt://'.$path,'w'); + } } |