summaryrefslogtreecommitdiff
path: root/rh-bin/listdropboxes.cgi
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2015-12-28 11:43:41 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2015-12-28 11:43:41 (GMT)
commit17d6568c4da2901e083770d3a6f683d3d98ff488 (patch)
tree4678e69f12410f1ed6131688c204d16ae350cd99 /rh-bin/listdropboxes.cgi
parentd4af036bd683a8777e7251726168b7833272ea26 (diff)
parent00638c1416bc314c581b0ca67efe59c76f12e838 (diff)
Merge branch 'master' of ssh://git@git.helsinki.at:2342/rhwebimport.git
Diffstat (limited to 'rh-bin/listdropboxes.cgi')
-rwxr-xr-xrh-bin/listdropboxes.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/rh-bin/listdropboxes.cgi b/rh-bin/listdropboxes.cgi
index 2b753d1..2eabf22 100755
--- a/rh-bin/listdropboxes.cgi
+++ b/rh-bin/listdropboxes.cgi
@@ -35,6 +35,7 @@ my @dropboxes = ();
my $q = CGI->new;
my $username = $q->param('LOGIN_NAME');
my $token = $q->param('PASSWORD');
+my $type = $q->param('TYPE');
if(!defined $username) {
$responsecode = 400;
@@ -49,7 +50,7 @@ if(!defined $username) {
($result, $status, $errorstring) = RHRD::rddb::check_token($ctx, $username, $token);
if($result == 1) {
$responsecode = 200;
- @dropboxes = RHRD::rddb::get_dropboxes($ctx, $username);
+ @dropboxes = RHRD::rddb::get_dropboxes($ctx, $username, undef, $type);
if(!defined $dropboxes[0] && defined $dropboxes[1]) {
$responsecode = 500;
$status = $dropboxes[1];