summaryrefslogtreecommitdiffstats
path: root/app/core/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/core/files.js')
-rw-r--r--app/core/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/core/files.js b/app/core/files.js
index 3d8662a..a271785 100644
--- a/app/core/files.js
+++ b/app/core/files.js
@@ -129,7 +129,7 @@ FileManager.prototype.list = function(options, cb) {
}
if (options.expand) {
- var includes = options.expand.split(',');
+ var includes = options.expand.replace(/\s/, '').split(',');
if (_.includes(includes, 'owner')) {
find.populate('owner', 'id username displayName email avatar');