summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-10-02 07:52:15 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-10-02 08:11:50 +0200
commitc924b6740a523f45d0947a840c6934491a8f699e (patch)
tree43175b469c5f9ed908c10c956c85419a731b4c2e /apps
parentc3e7d324c5e61eb087fb2ea5102d332f9f08db3d (diff)
downloadnextcloud-server-c924b6740a523f45d0947a840c6934491a8f699e.tar.gz
nextcloud-server-c924b6740a523f45d0947a840c6934491a8f699e.zip
Do not return unneeded info
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/external/manager.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/external/manager.php b/apps/files_sharing/lib/external/manager.php
index 78d9581524d..2ba02f40d2f 100644
--- a/apps/files_sharing/lib/external/manager.php
+++ b/apps/files_sharing/lib/external/manager.php
@@ -182,7 +182,7 @@ class Manager {
*/
public function getShare($id) {
$getShare = $this->connection->prepare('
- SELECT *
+ SELECT `id`, `remote`, `remote_id`, `share_token`, `name`, `owner`, `user`, `mountpoint`, `accepted`
FROM `*PREFIX*share_external`
WHERE `id` = ? AND `user` = ?');
$result = $getShare->execute(array($id, $this->uid));
@@ -424,7 +424,9 @@ class Manager {
* @return array list of open server-to-server shares
*/
private function getShares($accepted) {
- $query = 'SELECT * FROM `*PREFIX*share_external` WHERE `user` = ?';
+ $query = 'SELECT `id`, `remote`, `remote_id`, `share_token`, `name`, `owner`, `user`, `mountpoint`, `accepted`
+ FROM `*PREFIX*share_external`
+ WHERE `user` = ?';
$parameters = [$this->uid];
if (!is_null($accepted)) {
$query .= ' AND `accepted` = ?';