Skip to content

Commit

Permalink
Do not return unneeded info
Browse files Browse the repository at this point in the history
  • Loading branch information
rullzer committed Oct 2, 2015
1 parent c3e7d32 commit c924b67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/files_sharing/lib/external/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private function setupMounts() {
*/
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));
Expand Down Expand Up @@ -424,7 +424,9 @@ public function getAcceptedShares() {
* @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` = ?';
Expand Down

0 comments on commit c924b67

Please sign in to comment.