]> source.dussan.org Git - nextcloud-server.git/commit
Check if the offset exists before accessing
authorLukas Reschke <lukas@owncloud.com>
Mon, 16 Feb 2015 23:47:29 +0000 (00:47 +0100)
committerLukas Reschke <lukas@owncloud.com>
Tue, 17 Feb 2015 16:08:23 +0000 (17:08 +0100)
commit3213b04aef30a66c7eebb750bfc4bbb6fe6cfa78
tree09df95db40575fd9b325b199ae501e5ecd2572c7
parentac13cf04ba83d42b0bf6c2955e08de10634095c2
Check if the offset exists before accessing

This checks if the offset exists before accessing it and also adds unit tests to this function which would have catched this before :see_no_evil:

Fixes https://github.com/owncloud/core/issues/14277
apps/files/controller/apicontroller.php
apps/files/tests/controller/apicontrollertest.php [new file with mode: 0644]