aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Controller/ApiController.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-03-21 09:53:31 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-06 14:49:30 +0200
commit10010fc532a02958804667e1cb3acee8e9556394 (patch)
treebbb99c171e6e32b85b5aee9365ad5e9ebe68054e /apps/files/lib/Controller/ApiController.php
parentb761039cf1946cb64898b9117d1b15dd89080451 (diff)
downloadnextcloud-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.php2
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();