diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-03-21 09:53:31 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-04-06 14:49:30 +0200 |
commit | 10010fc532a02958804667e1cb3acee8e9556394 (patch) | |
tree | bbb99c171e6e32b85b5aee9365ad5e9ebe68054e /apps/files/lib/Controller/ApiController.php | |
parent | b761039cf1946cb64898b9117d1b15dd89080451 (diff) | |
download | nextcloud-server-10010fc532a02958804667e1cb3acee8e9556394.tar.gz nextcloud-server-10010fc532a02958804667e1cb3acee8e9556394.zip |
feat(files): sorting
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/lib/Controller/ApiController.php')
-rw-r--r-- | apps/files/lib/Controller/ApiController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index 85507132edd..c7da9b2c118 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -285,7 +285,7 @@ class ApiController extends Controller { * @throws \OCP\PreConditionNotMetException */ public function updateFileSorting($mode, $direction) { - $allowedMode = ['name', 'size', 'mtime']; + $allowedMode = ['basename', 'size', 'mtime']; $allowedDirection = ['asc', 'desc']; if (!in_array($mode, $allowedMode) || !in_array($direction, $allowedDirection)) { $response = new Response(); |