]> source.dussan.org Git - nextcloud-server.git/commit
files_encryption: Fix getFileSize()
authorMarkus Goetz <markus@woboq.com>
Sat, 5 Oct 2013 16:00:46 +0000 (18:00 +0200)
committerMarkus Goetz <markus@woboq.com>
Mon, 21 Oct 2013 14:02:33 +0000 (16:02 +0200)
commit6ece54853d40fa4cf12b9ea31af866578d9b13c6
tree3222b73361712ed1ade67a1135435a044ffe04f6
parentfa068641a77a00f7eb540aff1f27465a7c093276
files_encryption: Fix getFileSize()

For certain file sizes, we rounded to the wrong chunk number
and the returned bogus results. This should fix
https://github.com/owncloud/mirall/issues/1009
apps/files_encryption/lib/util.php
apps/files_encryption/tests/util.php