summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-02-10 13:29:18 +0100
committerRobin Appelman <robin@icewind.nl>2017-03-23 14:03:22 +0100
commit76d8699c0f3678ee77879831229832557b7f0ec8 (patch)
tree987c99fd9b353aa44e8236b33dbbb197f5113f88 /apps/files_external/js
parentf38d36a16167041da7bf528d3822d3ab30c93c1f (diff)
downloadnextcloud-server-76d8699c0f3678ee77879831229832557b7f0ec8.tar.gz
nextcloud-server-76d8699c0f3678ee77879831229832557b7f0ec8.zip
Allow using '/' as external storage root
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index 976c0c00b89..4e35ea531eb 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -960,7 +960,7 @@ MountConfigListView.prototype = _.extend({
success: function(result) {
var onCompletion = jQuery.Deferred();
$.each(result, function(i, storageParams) {
- storageParams.mountPoint = storageParams.mountPoint.substr(1); // trim leading slash
+ storageParams.mountPoint = (storageParams.mountPoint === '/')? '/' : storageParams.mountPoint.substr(1); // trim leading slash
var storageConfig = new self._storageConfigClass();
_.extend(storageConfig, storageParams);
var $tr = self.newStorage(storageConfig, onCompletion);