aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Controller/UserStoragesController.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-03-12 19:45:23 +0100
committerRobin Appelman <robin@icewind.nl>2020-03-12 19:45:23 +0100
commit0d112d7901983a568f6a803f59f240afd434db61 (patch)
treef5e89f7532e42ed660efda197693a5745085906a /apps/files_external/lib/Controller/UserStoragesController.php
parent24d0fb9fcd8b190b6c16c4608c95785036b1eb31 (diff)
downloadnextcloud-server-0d112d7901983a568f6a803f59f240afd434db61.tar.gz
nextcloud-server-0d112d7901983a568f6a803f59f240afd434db61.zip
Use placeholder values for password fields in external storage webui
This prevents the password from being sent to the webui. While an admin will always be able to retrieve the passwords (as they can do arbitrairy code execution by design) this prevents casual password snooping Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Controller/UserStoragesController.php')
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php
index 6f55af96d1d..46285c4758a 100644
--- a/apps/files_external/lib/Controller/UserStoragesController.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -148,7 +148,7 @@ class UserStoragesController extends StoragesController {
$this->updateStorageStatus($newStorage);
return new DataResponse(
- $newStorage,
+ $this->formatStorageForUI($newStorage),
Http::STATUS_CREATED
);
}
@@ -208,7 +208,7 @@ class UserStoragesController extends StoragesController {
$this->updateStorageStatus($storage, $testOnly);
return new DataResponse(
- $storage,
+ $this->formatStorageForUI($storage),
Http::STATUS_OK
);